Sunday, May 1, 2011

[android-developers] Problem a ViewFlipper.

Hello,
I want to show an image in my application, then after 3 seconds i want
to show the other image, so i choose to use a ViewFlipper, however i'm
facing a little problem:
The first image shows and after 3 seconds the next image is showen BUT
instantly it returns to the previous one(first one).
I maked this:
public void onRegistrationDone(String localProfileUri, long
expiryTime) {
updateStatus("Registered to server.");
Log.d("SUCCEED","Registration DONE");

final ViewFlipper flipper =
(ViewFlipper)findViewById(R.id.flipper);
flipper.postDelayed(new Runnable() {
public void run() {
flipper.showNext();
}
},3000);}

What can be the problem?

Thank you for your help.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment