Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EditText editNCuenta,editCCV,editNombres,editApellidos,editDinero;
- Button btnAgregar;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_tabla);
- editNCuenta=(EditText) findViewById(R.id.editNCuenta);
- editCCV=(EditText) findViewById(R.id.editCCV);
- editNombres=(EditText) findViewById(R.id.editNombres);
- editApellidos=(EditText) findViewById(R.id.editApellidos);
- editDinero=(EditText) findViewById(R.id.editDinero);
- btnAgregar=(Button) findViewById(R.id.btnAgregar);
- final Usuarios usuarios=new Usuarios(getApplicationContext());
- btnAgregar.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- usuarios.Registrar(editNCuenta.getText().toString(),editCCV.getText().toString(),
- editNombres.getText().toString(),editApellidos.getText().toString(),editDinero.getText().toString());
- Toast.makeText(getApplicationContext(),"SE AGREGÓ CORRECTAMENTE",Toast.LENGTH_SHORT).show();
- }
- });
- }
Add Comment
Please, Sign In to add comment