title: onClick Button not working
body: <p>i'm new on this "World" and i'm having serious troubles with this button, i've done more buttons with Android Studio, but this one is driving me crazy, i don't know how to solve this issue, could anyone of you help me please?</p>
  
  <p>.java (I just wanted to create a toast saying "sent successfully", and then create the onClickButton to do the rest of stuff)</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_my);
  
  
  
      final Button btAceptar = (Button) findViewById(R.id.btEnviar);
      btAceptar.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              btAceptar.setOnClickListener(this);
              Toast.makeText(getBaseContext(),"Datos enviados correctamente", Toast.LENGTH_SHORT).show();
          }
      });
  
  
  
  
  
  
  }
      public void onClickEnviar(View v){
      final EditText txtCognom = (EditText) findViewById(R.id.etCognom);
      final EditText txtNom = (EditText) findViewById(R.id.etNom);
      final EditText txtEdat = (EditText) findViewById(R.id.etEdat);
      final EditText txtTelefon = (EditText) findViewById(R.id.etTelefon);
      final EditText txtEmail = (EditText) findViewById(R.id.etEmail);
  
      Intent iIntent = new Intent(MyActivity.this, EnvioFormulario.class);
  
      // Bundle per al cognom i posem la informació al intent
      Bundle bEnviat = new Bundle();
      bEnviat.putString("Cognom", txtCognom.getText().toString());
      bEnviat.putString("Nom", txtNom.getText().toString());
      bEnviat.putString("Edat", txtEdat.getText().toString());
      bEnviat.putString("Telefon", txtTelefon.getText().toString());
      bEnviat.putString("Email", txtEmail.getText().toString());
      iIntent.putExtras(bEnviat);
  
  
      // Start a la activitat per a que començi
      startActivity(iIntent);
  
  }
  </code></pre>
  
  <p>If you need another part of my code to try to help me, i'll post it!</p>
  
  <p>Thanks.</p>