Code example for Dialog

Methods: setContentView, setTitle, show

0
			CatchError(ex.toString());
		} 
	} 
 
	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();
	} 
 
	public void btnRegresar_Click(View view) {
		Intent i = new Intent(this, StartActivity.class);
		startActivity(i);
	} 
 
	public void btnNuevoUsuario_Click(View view) {
		Intent i = new Intent(this, AddUser.class);
		startActivity(i);