Re: [android-developers] How to detect whether my code is being executed on the UI thread?

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 8:18 AM, Jin Chiu wrote: > How do I distinguish between these two cases? http://groups.google.com/group/android-developers/browse_thread/thread/ccc923ae7783e51/5a0d0cf105b68127

[android-developers] How to detect whether my code is being executed on the UI thread?

2010-07-23 Thread Jin Chiu
I have an AIDL service that is intended to be used by both out-of- process remote users and in-process local users. As a result, my common interface methods will either be invoked on the UI thread or in a binder background thread. The logic between the two is not the same. How do I distinguish bet