I agree. There's definitely a very good chance that the while loop is blocking the listener callback.
Note: I believe he's running the whole lot in a new thread (and forcing the update requests to fire on that same thread) rather than the main event thread, but it still turns in to the same problem in the end. On 21 Aug, 13:47, Mark Murphy <[EMAIL PROTECTED]> wrote: > code_android_festival_way wrote: > > Could it be that my "while" loop blocks the class (thread) and so the > > listenere cant be invoked? > > Sorry, I haven't looked at your code. But you may be right on this. > > Android applications have the main event thread, plus any secondary > threads you create on your own. Listener callbacks, AFAIK, happen on the > main event thread, which is why you can update UI elements without muss > or fuss. If your while loop is also on the main event thread, you never > release that thread, and hence your listeners may never be called. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Warescription: All titles, revisions, & ebook formats, just $35/year --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---