Code example for Toast

Methods: cancel

0
    * Cancels the toast view. Should be refined only when overridden. 
    * Called on the Toast thread!!! 
    */ 
	protected void cancel() 
	{ 
		mToast.cancel();
	} 
	 
	protected void setCustomDuration( long aDuration )
	{ 
		mDuration = aDuration;
		if ( mHandler != null )
		{ 
			mDurationTestCallback = new Runnable() {
				public void run() { 
					try 
					{ 
						synchronized ( WazeToastThread.this )
						{ 
							if ( ( mDuration > 0 ) && ( mToast != null ) && ( mHandler != null ) )
							{