In one of my methods, I have a toast
that appears if the user gives the correct input. However, I do not want the next image to display until the toast has finished.
If I use Thread.sleep(3000)
if does not allow the toast
to show as the UI activity is asleep.
An example of what I am trying to do:
public void correction(){
if(correctionBoolean == true){
Toast.makeText(this, "Correct!", Toast.LENGTH_SHORT).show();
if(Toast.time == finished){
NextImage();}
}