/* In onclick function */
Toast.makeText(this,"you are right!",Toast.LENGTH_SHORT).show();
timer();
compare();
/* onclick function ends */
In this snippet when the dialog is popping up, the timer and compare methods are executed before the dialog goes away. How do I fix this? Can someone explain with a code snippet?
Also, I want the LENGTH_SHORT to be 400ms. How can I change that?
How can I do this simple task using alertdialog?
You can give time in miliSecond in Toast