Unfortunately, that post does not address my question. If my service is getting called out-proc, runOnUIThread() will post an asynchronous message on the UI thread's message queue, which is not want I want. If my code is being invoked on a background thread, I need additional logic to post the message, wait, and wakeup once the that message is serviced. Essentially, 2 completely different code paths that cannot be wrapped by a single Runnable object. I really need something that returns a boolean flag indicating whether we're on the UI thread.
On Jul 23, 10:12 am, TreKing <[email protected]> wrote: > On Fri, Jul 23, 2010 at 8:18 AM, Jin Chiu <[email protected]> wrote: > > How do I distinguish between these two cases? > > http://groups.google.com/group/android-developers/browse_thread/threa... > <http://groups.google.com/group/android-developers/browse_thread/threa...> > --------------------------------------------------------------------------- > ---------------------- > 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

