Code example for AlertDialog

Methods: cancel

0
	 * This should be called when activity is paused. 
	 */ 
	public void pause() { 
		// get rid of WindowLeakedException in logcat 
		if (mHintDialog != null) {
			mHintDialog.cancel();
		} 
	} 
 
	private static class Message { 
		int titleResID;
		int messageResID;
		//Object[] args; 
	} 
 
}