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. Native VPN client

Hi all,

Does anyone have any information of the source of the native VPN
client in Android 2.2 - what code base is it based on: openvpn,
sttrongswan, etc?

And specifically what feature set (IKEv2, mode-config, PKCS11,
smartcard usage, etc) and algorithms (ECDH, AES-256, Sha-256, etc) are
supported by it.

There is not a lot of info about it anywhere that I can find and these
details are not exposed in the configuration screens.

Thanks in adnvace


2. There is new issue being introduced in Froyo of search dialog after its window type has been changed from "TYPE_SEARCH_BAR" in Eclair to "TYPE_APPLICATION"

Issue described:
Issue:Virtual keypad " dances " if user launches starts serach while
you tube is playing.....please see attached video

1.Start playing a youtube video with slider open
2.While the video is the search TSB..this launches
the search window
3.Close the slider and touch within the search box to launch the
virtual keypad.....note virtual keypad is launched but is dancing as
in the attached video

We got the root cause analysis:
This issue is newly introduced in Froyo, which did not exist in

In Froyo, the Search Dialog has been moved from system to application
context, and its window type has been changed from "TYPE_SEARCH_BAR"
in Eclair to "TYPE_APPLICATION".
Because of this change, the Search Dialog window will be taken into
account when the window manager decides whether to shown the status
bar(used to be ignored in Eclair, which should be correct case). Since
the search dialog window does not have the "FLAG_FULLSCREEN" flag that
hides the staus bar, while the application base window (Youtube
window) underneath does, the window manager shows the status bar first
and then hides it(repeats doing this for a few times) when there are
window re-layout requests coming, that is what the flicker is all

And we fix it as below updating:
diff --git a/core/java/android/app/ b/core/java/
index 7625c04..2daf660 100644
--- a/core/java/android/app/
+++ b/core/java/android/app/
@@ -173,6 +173,7 @@ public class SearchDialog extends Dialog
implements OnItemClickListener, OnItemS

         Window theWindow = getWindow();
         WindowManager.LayoutParams lp = theWindow.getAttributes();
+        lp.type = WindowManager.LayoutParams.TYPE_SEARCH_BAR;
         lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
         // taking up the whole window (even when transparent) is less
than ideal,
         // but necessary to show the popup window until the window
manager supports

My question is:
1. Does Froyo team get similar issue from developers ?
2. Why Froyo team need such changes for Search Dialog ?
3. Did we get the right root cause ?
4. How will Froyo team resolve this problem ?


3. Opinions wanted on ExpandableListView - debug or rewrite?

4. Android and Java card link

5. Knwon issues and limitations on running Android applications on Android 2.1 smartphone

6. TextView visibility problem

7. Documentation Building