How to check if running on UI thread in Android?

Viewed 37436

How can I know if the running code is executed on the main thread (UI thread)?
With Swing I use the isEventDispatchThread method...

4 Answers
Related