android - Persistent Toast Message: Toast won't disappear after execution -


I have a toast message that has not disappeared after execution. I'm guessing that there is something in the loop with it, but I'm not sure. Can someone help me to understand why the toast message is not different?

  @Override Click Public Zero (see V) {int index = 0; {If (email.getText (). ToString (.) Equal to (userArray [i])} {index = i; (i.e. } If passArray [index] .equals (password.gettext (). ToString ()) {toast.makeText (getBaseContext), "success!", Toast .LENGTH_SHORT). Show (); } And {toast} GetBaseContext, "INVALID LOGIN", toast .LENGTH_SHORT). Show (); }} Intention Main Identity = New Intent (Login Activity., Main Activity Category); StartActivityForResult (key component, 0); }   

}

If a toast message is trapped A service is called thread and the work is completed before the toast is set to disappear. Then you get stuck with a toast message on the screen until you kill the app.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -