Code example for Dialog

Methods: cancel

0
		            	if (instapaperReturnCode == 201) 
	            		{ 
	            			Toast.makeText(mActivity, "Saved successfully", 50000).show(); 
	            			if (mInstapaperDialog != null) 
	            			{ 
	            				mInstapaperDialog.cancel(); 
	            			} 
	            		} else if (instapaperReturnCode == 400) 
	            		{ 
	            			Toast.makeText(mActivity, "Unable to save: Bad request or exceeded the rate limit.", 50000).show(); 
	            			if (mInstapaperDialog != null) 
	            			{ 
	            				mInstapaperDialog.cancel(); 
	            			} 
	            		} else if (instapaperReturnCode == 403) 
	            		{ 
	            			Toast.makeText(mActivity, "Unable to save: Invalid username or password. Please try again.", 50000).show(); 
	            		} else if (instapaperReturnCode == 500) 
	            		{ 
	            			Toast.makeText(mActivity, "Unable to save: The service encountered an error. Please try again later.", 50000).show(); 
	            			if (mInstapaperDialog != null)