I am trying to create an application using Android Studio!! I'm using sqlite database!! I have managed to pass data to the database and login succesfully. However what i want is each time the login is successfull to direct the user in another activity of this project.I think this is the if statement that is responsible for that.
if(password.equals(storedPassword))
{
Toast.makeText(MyActivity.this, "Congrats: Login Successfull", Toast.LENGTH_LONG).show();
dialog.dismiss();
}
else
{
Toast.makeText(MyActivity.this, "User Name or Password does not match", Toast.LENGTH_LONG).show();
}
Aucun commentaire:
Enregistrer un commentaire