Back to project page GhostStories.
The source code is released under:
GNU General Public License
If you think the Android project GhostStories listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.utils; /*from w w w . ja v a 2 s .c o m*/ import android.os.Looper; /** * Generic utility methods related to the android software kit */ public abstract class AndroidUtils { /** * @return Whether or not the current thread is the UI thread */ public static boolean isUIThread() { return (Looper.getMainLooper() == Looper.myLooper()); } }