sorry for my bad English.
i want show two toast in order, in other word when first toast duration is over second toast appear.
this is my code :
Toas
This should help you :
Toast.makeText(this, "Show toast 1", Toast.LENGTH_SHORT).show();
new Thread(){
@Override
public void run() {
try{
sleep(Toast.LENGTH_SHORT); // sleep the time first toast is being shown
Toast.makeText(this, "Show toast 2", Toast.LENGTH_SHORT).show();
}catch (InterruptedException e){
e.printStackTrace();
}
}
}.start();