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. Edditing cache xml file


I am trying to write sth that is similar to a 'contact book'
functionality. And I am wondering how to store the information data on
the phone's hdd. The first thing that came to my mind is creating an
xml file for this: I can add following elements like that:

<person number="01">

I can use SAX parser to read the file and get every information and
that would correspond great with my listview. However I am having one
problem - how to edit and xml file in Android? Off course I would like
to have a functionality of adding, deleting and editing single
contacts. It seems very dumb to load the whole xml file to the memory,
clean it  make some changes in the code and then create the xml file
again. I think java usually uses javax.xml.transform for that but
Android seems to be missing this. Does any one have any other

Please respond.


2. problem in displaying the google maps

1. Make sure you have the INTERNET permission.

2. Make sure your device or emulator has Internet access. For example,
in the emulator, if you have zero bars of signal strength, your
emulator is emulating having no connectivity.

3. Make sure your API key is in your layout properly.

Here is a sample project known to work -- all you need to do is
replace the API key:

Mark Murphy (a Commons Guy) | |

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9


3. Highlighting an icon in a Gallery widget

4. Mod: Mari bergabung di milis id-chromeOS

5. Diskusi Iseng: Kenapa Google Ngga Konsisten

6. [WTS] Desire Z Second Like New !

7. Wp7 wannabe