Code example for Dialog

Methods: dismiss

0
    	return data;
    } 
 
	private void removeSplashScreen() { 
		if (splashDialog != null) {
			splashDialog.dismiss();
			splashDialog = null;
		} 
	} 
 
	private void showSplashScreen() { 
		splashDialog = new Dialog(this);
		splashDialog.setContentView(R.layout.splashscreen);
		splashDialog.setCancelable(false);
		splashDialog.show();
		 
		// Start background Handler to cancel it, to be save 
		final Handler handler = new Handler();
		handler.postDelayed(new Runnable() {
			@Override 
			public void run() {