Code example for ProgressDialog

Methods: dismissisShowing

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();
		} 
Contextual code suggestions in your IDE  Get Codota for Java