src/com/btwiz/library/Utils.java
public static void assertNotUIThread() {
		if (Looper.getMainLooper().equals(Looper.myLooper())) {
			throw new RuntimeException(
					"This command should not execute on UI thread!");
		}
	}
/**
	 * Throws a RuntimeException if this thread is the UI thread
	 */
Throws a RuntimeException if this thread is the UI thread
Throws a RuntimeException if this thread is the UI thread
public static void assertNotUIThread() {
		if (Looper.getMainLooper().equals(Looper.myLooper())) {
			throw new RuntimeException(
					"This command should not execute on UI thread!");
		}
	}
public static void assertNotUIThread ( ) { if ( Looper . getMainLooper ( ) . equals ( Looper . myLooper ( ) ) ) { throw new RuntimeException ( "This command should not execute on UI thread!" ) ; } }
Throws a RuntimeException if this thread is the UI thread
Throws a RuntimeException if this thread is the UI thread