Code example for Dialog

Methods: setContentViewsetTitleshow

0
		} 
	} 
	 
	void CatchError(String Exception)
	{ 
		Dialog diag=new Dialog(this);
		diag.setTitle("Inicio de Sesion");
		TextView txt=new TextView(this);
		txt.setText(Exception);
		diag.setContentView(txt);
		diag.show();
	} 
	 
	void NotifyEmpAdded() 
	{ 
		Dialog diag=new Dialog(this);
		diag.setTitle("Inicio de Sesion");
		TextView txt=new TextView(this);
		txt.setText("Inicio de Sesion exitoso");
		diag.setContentView(txt);
Connect your IDE to all the code out there  Get Codota for Java