Code example for ProgressDialog

Methods: dismiss, getWindow, isShowing

0
		mProgressDialog.show();
	} 
 
	protected void dismissProgress() { 
		// You can't be too careful. 
		if (mProgressDialog != null && mProgressDialog.isShowing() && mProgressDialog.getWindow() != null) {
			try { 
				mProgressDialog.dismiss();
			} catch ( IllegalArgumentException ignore ) { ; }
		} 
		mProgressDialog = null;
	} 
	 
	////////////////////////////////////////////////////////////////////////// 
	// File Download 
	////////////////////////////////////////////////////////////////////////// 
 
	/** 
 	 * Download .zip file specified by url, then unzip it to a folder in external storage. 
	 * 
	 * @param url