Code example for Activity

Methods: runOnUiThread

0
			} 
		}; 
	} 
 
	public void show() { 
		myActivity.runOnUiThread(new Runnable() {
			public void run() { 
				showInternal(); 
			} 
		}); 
	} 
 
	private void showInternal() { 
		if (myAnimated && android.os.Build.VERSION.SDK_INT >= 11) {
			showAnimatedInternal(); 
		} else { 
			setVisibility(View.VISIBLE);
		} 
	} 
 
	@TargetApi(Build.VERSION_CODES.HONEYCOMB)