Code example for Dialog

Methods: setContentViewsetTitleshow

0
		} 
	} 
	 
	void CatchError(String Exception)
	{ 
		Dialog diag=new Dialog(this);
		diag.setTitle("Registro de Datos");
		TextView txt=new TextView(this);
		txt.setText(Exception);
		diag.setContentView(txt);
		diag.show();
	} 
	 
	void NotifyEmpAdded() 
	{ 
		Dialog diag=new Dialog(this);
		diag.setTitle("Registro de Datos");
		TextView txt=new TextView(this);
		txt.setText("Registro realizado con exito");
		diag.setContentView(txt);
Experience pair programming with AI  Get Codota for Java