Code example for Dialog

Methods: dismissisShowing

0
			} 
		}); 
		mBtnCancel.setOnClickListener(new View.OnClickListener() {
			@Override 
			public void onClick(View v) {
				if (mSelectDialog != null && mSelectDialog.isShowing()) {
					mSelectDialog.dismiss();
				} 
			} 
		}); 
	} 
 
	private Dialog mSelectDialog;
 
	private void showSelectDialog() { 
		if (mSelectDialog == null) {
			mSelectDialog = new Dialog(this);
			mSelectDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
			LinearLayout linear = new LinearLayout(this);
			linear.setOrientation(LinearLayout.VERTICAL);
Stop searching for code, let great code find you!  Add Codota to your java IDE