Problem in showing multiple images in ImageView object

by Md.Fazla Rabbi OPU » Fri, 20 May 2011 09:50:38 GMT

Sponsored Links

I am new in Android. I made a small project with two button ("next"
and "previous") and a ImageView object. In the res/drawable folder i
have some images. I store this images in an Array object. Now i want
to show the images which is come from the Array object one by one when
the next button is pressed. Same event will be occured when the
previous button is clicked. How can i do this.

Plz anyone help me.

Thanks in Advance

Md.Fazla Rabbi Opu


Re: Problem in showing multiple images in ImageView object

by Saurav » Fri, 20 May 2011 12:28:21 GMT

 Use a Gallery, or an ImageSwitcher.

Saurav Mukherjee.

On Thu, May 19, 2011 at 10:37 AM, Md.Fazla Rabbi OPU <


Sponsored Links

Other Threads

1. Droid X Screen Protecto

As subject, yang punya monggo ditawarkan :)
Thank you....

Deska Affif
0899-989-GAYA (4292) | Y!: GadgetGaya  |  Bikin Gadgetmu Makin Gaya!

"Indonesian Android Community [id-android]"

PING'S mobile
Email:  Ph. (021) 96087100
Yopie Ratjoen
Email:  Ph. 08977726681
Gila original
Email:  Ph. (031) 91555898

Aturan Jual/Kloteran ID-Android

2. activity lifetime and lifetime of instance

hi all

I have a very basic question regarding the lifetime of an instance
when it comes to the activity lifecycle changes.

Lets assume I have an activity that owns an instance of a (custom)
view class. This view instance has an instance x of another class X
(this class stores some application business data). What happens with
this instance x if onStop / onDestroy for the activity are called?
Will the instance be garbage collected and in turn will the
constructor for this instance be called once again when onRestart is
Or will the instance completely remain in memory?

The Snake and LunarLander example store all the application's logical
data directly in the view classes and thus they can simply but the
basic values (integers etc) in a bundle. I've not seen an example
where you have a complexer class with data which you want to
save/recover and how one would do that respectively what you need to
do so that an instance of this complexer class is setup properly (so
that you dont get NullPointerException and all that {*filter*} stuff ;-)).

looking forward to your answers and thanks for the patience with yet
another android newbie ;-)



3. Android API-8 UI Problem misplaced views

4. Widget doesn't work

5. Jersey client with android does not work

6. How to position the dilaog in screen ?

7. Draw on SurfaceView(VideoPlayer) Canvas