Code example for Toast

Methods: cancel

0
 
    public void dismissToast() { 
        mHandler.post(new Runnable() {
            public void run() { 
                if (mToast != null) {
                    mToast.cancel();
                } 
            } 
        }); 
    } 
}