How to check if current thread is not main thread September 17, 2022 by Tarik Looper.myLooper() == Looper.getMainLooper() if this returns true, then you’re on the UI thread!