How to cancel Toast
I developed an android application and I am facing a problem with Toast . Suppose I am displaying a Toast, it is displayed on the application window. When a Dialog box is appears, the toast doesn't disappear instantly . I want to know how I can cancel the toast. Toast.makeText returns a Toast object. Call cancel() on this object to cancel it. noypiscripter The shortest duration you can specify for the toast is Toast.LENGTH_SHORT which has a value of 0 but is actually 2000 milliseconds long . If you want it shorter than that, then try this: final Toast toast = Toast.makeText(ctx, "This message