On Mon, Sep 20, 2010 at 4:52 PM, DanH <[email protected]> wrote: > What is the Android technique/pattern for effectively waiting on an event > in another thread? Eg, waiting for an onClicked in a dialog? >
In general, I'd say you really don't want to "wait" as much as you want to "respond". This will also vary based on what you're waiting on, how long you expect to wait, and how predictable the event you're waiting on is. For example, you'd probably do very different things waiting for the user to receive a text than you would waiting for server file to download. Perhaps more details on your exact use case are in order? ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

