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
Other solution is to use AlertDialog
createDialog().show();
with two methods createDialog() and continueDialog()
public AlertDialog createDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Toast1")
.setPositiveButton("Next",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
continueDialog().show();
}
});
return builder.create();
}
public AlertDialog continueDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Toast2")
.setPositiveButton("OK",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
});
return builder.create();
}