Guest User

Untitled

a guest
May 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. EditText editNCuenta,editCCV,editNombres,editApellidos,editDinero;
  2. Button btnAgregar;
  3. @Override
  4. protected void onCreate(Bundle savedInstanceState) {
  5. super.onCreate(savedInstanceState);
  6. setContentView(R.layout.activity_tabla);
  7. editNCuenta=(EditText) findViewById(R.id.editNCuenta);
  8. editCCV=(EditText) findViewById(R.id.editCCV);
  9. editNombres=(EditText) findViewById(R.id.editNombres);
  10. editApellidos=(EditText) findViewById(R.id.editApellidos);
  11. editDinero=(EditText) findViewById(R.id.editDinero);
  12. btnAgregar=(Button) findViewById(R.id.btnAgregar);
  13.  
  14. final Usuarios usuarios=new Usuarios(getApplicationContext());
  15.  
  16. btnAgregar.setOnClickListener(new View.OnClickListener() {
  17. @Override
  18. public void onClick(View view) {
  19. usuarios.Registrar(editNCuenta.getText().toString(),editCCV.getText().toString(),
  20. editNombres.getText().toString(),editApellidos.getText().toString(),editDinero.getText().toString());
  21. Toast.makeText(getApplicationContext(),"SE AGREGÓ CORRECTAMENTE",Toast.LENGTH_SHORT).show();
  22. }
  23. });
  24.  
  25. }
Add Comment
Please, Sign In to add comment