Code example for ProgressDialog

Methods: dismiss, isShowing

0
		} 
 
		@Override 
		protected void onPostExecute(final Void result) {
			if (mProgress == null) return;
			if (mProgress.isShowing()) {
				mProgress.dismiss();
			} 
		} 
 
		@Override 
		protected void onPreExecute() { 
			if (mProgress == null) return;
			if (mProgress.isShowing()) {
				mProgress.dismiss();
			} 
			mProgress.setMessage(mContext.getString(R.string.please_wait));
			mProgress.setCancelable(false);
			mProgress.show();
		}