Code example for Dialog

Methods: setContentView, setTitle, show

0
			CatchError(ex.toString());
		} 
	} 
	 
	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();
	} 
	 
	 
	public void btnRegresar_Click(View view) {
		Intent i = new Intent(this, InicioSesion.class);
		startActivity(i);
	} 
 
	public void btnAddUser_Click(View view) {
		boolean ok = true;