You cannot safely modify the UI from a non-UI thread. Be sure to call showNext() on the main application thread. For example, if you are using AsyncTask, you could use publishProgress() and onProgressUpdate() for your showNext() calls.
On Wed, Oct 20, 2010 at 4:40 AM, Ouael Mouelhi <[email protected]> wrote: > Hi all, > > I have an issue with a view flipper. > > When I test my flipper in a separate application (activity), showNext > and show previous work fine. > But the issue is when the code is executed in a thread, the call of > showNext() methods blocks and there's no error message. > In fact I want to flip the view every time a step of my thread code is > executed. > > Does someone knows how can I resolve this ? > > Thank you. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

