How to check if current thread is not main thread

The Solution to How to check if current thread is not main thread is


Looper.myLooper() == Looper.getMainLooper()

if this returns true, then you're on the UI thread!

~ Answered on 2012-07-10 10:12:18


Most Viewed Questions: