J'ai problème avec mon journal de l'activité .. le bouton chargera l'activité suivante, même si aucune donnée sur le champ introduites texte .. est ici le code ...android: bouton Connexion
public void onButtonClick(View v){
if(v.getId()== R.id.Blogin) {
EditText a = (EditText)findViewById(R.id.TFusername);
String str = a.getText().toString();
EditText b = (EditText)findViewById(R.id.TFpassword);
String pass = b.getText().toString();
String password = helper.searchPass(str);
if(pass.equals(password))
{
Intent i = new Intent(User.this, Userlog.class);
i.putExtra("Username",str);
startActivity(i);
}
else
{
Toast temp = Toast.makeText(User.this, "Username and Password don't match!", Toast.LENGTH_SHORT);
temp.show();
}
MERCI BEAUCOUP les gars –
Pouvez-vous marquer cela comme réponse si elle sert le but – sha