android_app_ProgressDialog


pattern_2 (5 partitions, 224 files)


android.app.ProgressDialog.<init>, android.app.ProgressDialog.setMessage, android.app.ProgressDialog.show


Cluster 0 (57 files, similarity: 0.655)

meganz_____android_____NodeAttachmentHistoryActivity
	public void showProgressForwarding(){
		log("showProgressForwarding");

		statusDialog = new ProgressDialog(this);
		statusDialog.setMessage(getString(R.string.general_forwarding));
		statusDialog.show();
	}
            
PaperAirplane-Dev-Team_____BlackLight_____LoginActivity
		protected void onPreExecute() {
			super.onPreExecute();
			progDialog = new ProgressDialog(LoginActivity.this);
			progDialog.setMessage(getResources().getString(R.string.plz_wait));
			progDialog.setCancelable(false);
			progDialog.show();
		}
            
EspressifApp_____IOT-Espressif-Android_____DeviceTimerEditActivityAbs
        {
            mDialog = new ProgressDialog(DeviceTimerEditActivityAbs.this);
            mDialog.setMessage(getString(R.string.esp_device_task_dialog_message));
            mDialog.setCancelable(false);
            mDialog.show();
        }
            

Cluster 2 (15 files, similarity: 0.529)

leancloud_____leanchat-android_____BaseFragment
  protected ProgressDialog showSpinnerDialog() {
    //activity = modifyDialogContext(activity);
    ProgressDialog dialog = new ProgressDialog(getActivity());
    dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
    dialog.setCancelable(true);
    dialog.setMessage(getString(R.string.chat_utils_hardLoading));
    if (!getActivity().isFinishing()) {
      dialog.show();
    }
    return dialog;
  }
            
DF1E_____SimpleExplorer_____ExtractionTask
        if (activity != null) {
            this.dialog = new ProgressDialog(activity);
            this.dialog.setMessage(activity.getString(R.string.unzipping));
            this.dialog.setCancelable(true);
            this.dialog
                    .setOnCancelListener(new DialogInterface.OnCancelListener() {
                        @Override
                        public void onCancel(DialogInterface dialog) {
                            cancel(false);
                        }
                    });
            if (!activity.isFinishing()) {
                this.dialog.show();
            }
        }
            
rexstjohn_____UltimateAndroidCameraGuide_____SimplePhotoGalleryListFragment
        try {
            mListener = (OnFragmentInteractionListener) activity;
            // Show a progress dialog.
            mLoadingProgressDialog = new ProgressDialog(getActivity());
            mLoadingProgressDialog.setMessage("Loading Photos...");
            mLoadingProgressDialog.setCancelable(true);
            mLoadingProgressDialog.show();
        } catch (ClassCastException e) {
            throw new ClassCastException(activity.toString()
                    + " must implement OnFragmentInteractionListener");
        }
            

Cluster 3 (26 files, similarity: 0.477)

psaravan_____JamsMusicPlayer_____AsyncGoogleMusicAuthenticationTask
    protected void onPreExecute() {
    	
    	if (mFirstRun) {
        	pd = new ProgressDialog(mActivity);
    		pd.setCancelable(false);
    		pd.setIndeterminate(true);
    		pd.setTitle(R.string.signing_in);
    		pd.setMessage(mContext.getResources().getString(R.string.contacting_google_play_music));
    		pd.show();
    	}

    }
            
easemob_____sdkdemoapp3.0_android_____ChatRoomDetailsActivity
                if (resultCode == RESULT_OK) {
                        if (progressDialog == null) {
                                progressDialog = new ProgressDialog(ChatRoomDetailsActivity.this);
                                progressDialog.setMessage(st1);
                                progressDialog.setCanceledOnTouchOutside(false);
                        }
                        switch (requestCode) {
                        case REQUEST_CODE_EXIT: // �~@~@�~G�群
                                progressDialog.setMessage(st2);
                                progressDialog.show();
                                exitGrop();
                                break;

                        default:
                                break;
                        }
                }
            
wangchenyan_____PonyMusic_____BaseActivity
    public void showProgress(String message) {
        if (progressDialog == null) {
            progressDialog = new ProgressDialog(this);
            progressDialog.setCancelable(false);
        }
        progressDialog.setMessage(message);
        if (!progressDialog.isShowing()) {
            progressDialog.show();
        }
    }
            

pattern_19 (3 partitions, 119 files)


android.app.ProgressDialog.<init>, android.app.ProgressDialog.setMessage, android.app.ProgressDialog.setCancelable


Cluster 2 (36 files, similarity: 0.737)

huangfangyi_____FanXin2.0_IM_____RecorderVideoActivity
                if(progressDialog == null){
                    progressDialog = new ProgressDialog(this);
                    progressDialog.setMessage("processing...");
                    progressDialog.setCancelable(false);
                }
            
EspressifApp_____IOT-Espressif-Android_____DeviceTimerEditActivityAbs
        protected void onPreExecute()
        {
            mDialog = new ProgressDialog(DeviceTimerEditActivityAbs.this);
            mDialog.setMessage(getString(R.string.esp_device_task_dialog_message));
            mDialog.setCancelable(false);
            mDialog.show();
        }
            
wqandroid_____ihepai_____BaseActivity
        public void createDialog(String msg) {
                Basedialog = new ProgressDialog(mContext, R.style.custom_alert_dialog);
                Basedialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
                Basedialog.setMessage(msg);
                Basedialog.setIndeterminate(false);
                Basedialog.setCancelable(false);
                Basedialog.show();
        }
            

Cluster 1 (18 files, similarity: 0.46)

prey_____prey-android-client_____ChangePasswordPreferences
        protected void onPreExecute() {
            progressDialog = new ProgressDialog(getContext());
            progressDialog.setMessage(getContext().getText(R.string.preferences_passwords_updating_dialog).toString());
            progressDialog.setIndeterminate(true);
            progressDialog.setCancelable(false);
            progressDialog.show();
        }
            
evernote_____evernote-sdk-android_____EvernoteLoginFragment
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        setCancelable(false);

        DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int which) {
                EvernoteLoginTask task = (EvernoteLoginTask) TaskExecutor.getInstance().getTask(mTaskKey);
                if (task != null) {
                    task.cancel();
                }
                onResult(false, task);
            }
        };

        ProgressDialog progressDialog = new ProgressDialog(getActivity());
        progressDialog.setIndeterminate(true);
        progressDialog.setMessage(getString(R.string.esdk_loading));
        progressDialog.setButton(DialogInterface.BUTTON_NEGATIVE, getString(android.R.string.cancel), onClickListener);
        progressDialog.setCancelable(isCancelable());

        return progressDialog;
    }
            
M66B_____XPrivacy_____ActivityShare
		protected void onPreExecute() {
			super.onPreExecute();

			TypedArray ta = getTheme().obtainStyledAttributes(new int[] { R.attr.progress_horizontal });
			int progress_horizontal = ta.getResourceId(0, 0);
			ta.recycle();

			// Show progress dialog
			mProgressDialog = new ProgressDialog(ActivityShare.this);
			mProgressDialog.setMessage(getString(R.string.msg_loading));
			mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
			mProgressDialog.setProgressDrawable(getResources().getDrawable(progress_horizontal));
			mProgressDialog.setProgressNumberFormat(null);
			mProgressDialog.setCancelable(false);
			mProgressDialog.setCanceledOnTouchOutside(false);
			mProgressDialog.show();
		}
            

pattern_18 (3 partitions, 53 files)


android.app.ProgressDialog.<init>, android.app.ProgressDialog.setMessage, android.app.ProgressDialog.setIndeterminate, android.app.ProgressDialog.setCancelable


Cluster 3 (11 files, similarity: 0.627)

prey_____prey-android-client_____ChangeDeactivationPhrasePreferences
		protected void onPreExecute() {
			
			progressDialog = new ProgressDialog(getContext());
			progressDialog.setMessage(getContext().getText(R.string.updating_info_message).toString());
			progressDialog.setIndeterminate(true);
			progressDialog.setCancelable(false);
			progressDialog.show();
		}
            
zhuowei_____MCPELauncher_____ManageTexturepacksActivity
		protected void onPreExecute() {
			dialog = new ProgressDialog(ManageTexturepacksActivity.this);
			dialog.setMessage(getResources().getString(R.string.extracting_textures));
			dialog.setIndeterminate(true);
			dialog.setCancelable(false);
			dialog.show();
		}
            
klinker24_____Talon-for-Twitter_____DirectMessageListArrayAdapter
        protected void onPreExecute() {
            super.onPreExecute();
            pDialog = new ProgressDialog(context);
            pDialog.setMessage(context.getResources().getString(R.string.deleting_messages) + "...");
            pDialog.setIndeterminate(true);
            pDialog.setCancelable(false);
            pDialog.show();

        }
            

Cluster 0 (18 files, similarity: 0.542)

ParkSangGwon_____TedPicker_____CwacCameraFragment
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ImagePickerActivity.mMyCameraHost = new MyCameraHost(getActivity());


        mProgressDialog = new ProgressDialog(getActivity());
        mProgressDialog.setMessage(getString(R.string.progress_title));
        mProgressDialog.setIndeterminate(true);
        mProgressDialog.setCancelable(false);

    }
            
jenzz_____ContentProviderHelper_____ProgressDialogFragment
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		int messageResId = getArguments().getInt(ARG_LOADING_MESSAGE);
		Context context = getActivity();

		ProgressDialog dialog = new ProgressDialog(context);
		dialog.setMessage(context.getString(messageResId));
		dialog.setIndeterminate(true);
		dialog.setCancelable(false);
		dialog.setCanceledOnTouchOutside(false);
		setCancelable(false);

		return dialog;
	}
            
kyze8439690_____v2ex-daily-android_____PostCommentDialogFragment
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        ProgressDialog progressDialog = new ProgressDialog(getActivity(), ProgressDialog.STYLE_SPINNER);
        progressDialog.setMessage(getString(R.string.title_commenting));
        progressDialog.setIndeterminate(true);
        progressDialog.setCancelable(true);
        return progressDialog;
    }
            

pattern_14 (3 partitions, 57 files)


android.app.ProgressDialog.setProgress


Cluster 2 (16 files, similarity: 0.78)

jp1017_____ActivityLauncher_____AsyncProvider
		if(this.progress != null && values.length > 0) {
			int value = values[0];
			
			if(value == 0) {
				this.progress.setIndeterminate(false);
				this.progress.setMax(this.max);
			}
			
			this.progress.setProgress(value);
		}
            
psaravan_____JamsMusicPlayer_____AsyncAutoGetAlbumArtTask
    	if (DIALOG_VISIBLE==true) {
    		pd.setProgress(Integer.parseInt(values[1]));
    		pd.setMessage(values[0]);
    	}
            
AndroidVTS_____android-vts_____ApplicationVulnerabilityTester
            if(mShowWaitDiaglog) {
                Log.d("ANDRO_ASYNC", progress[0]);
                mProgressDialog.setProgress(Integer.parseInt(progress[0]));
            }
            

pattern_0 (2 partitions, 403 files)


android.app.ProgressDialog.dismiss


Cluster 1 (197 files, similarity: 0.919)

CommonUtils_____android_____DownloadFile
        if (pDialog != null && pDialog.isShowing()) {
            pDialog.dismiss();
        }
            
feicien_____android-auto-update_____CheckUpdateTask
        if (dialog != null && dialog.isShowing()) {
            dialog.dismiss();
        }
            
vickychijwani_____quill_____PostEditFragment
        if (mUploadProgress != null) {
            mUploadProgress.dismiss();
            mUploadProgress = null;
        }
            

pattern_3 (3 partitions, 108 files)


android.app.ProgressDialog.isShowing


Cluster 2 (71 files, similarity: 0.988)

crosswalk-project_____crosswalk-cordova-android_____CordovaActivity
        if (this.spinnerDialog != null && this.spinnerDialog.isShowing()) {
            this.spinnerDialog.dismiss();
            this.spinnerDialog = null;
        }
            
feicien_____android-auto-update_____CheckUpdateTask
        if (dialog != null && dialog.isShowing()) {
            dialog.dismiss();
        }
            
AppLozic_____Applozic-Android-SDK_____ConversationUIService
                                if (progressDialog != null && progressDialog.isShowing()) {
                                    progressDialog.dismiss();
                                }
            

Cluster 0 (28 files, similarity: 0.831)

wangchenyan_____PonyMusic_____BaseActivity
        if (!progressDialog.isShowing()) {
            progressDialog.show();
        }
            
GodFengShen_____PicOrVideoToAscii_____BaseActivity
        if (!progressDialog.isShowing()) {
            progressDialog.show();
        }
            
jensstein_____oandbackup_____HandleMessages
        public boolean isShowing()
        {
            if(progress != null)
                return progress.isShowing();
            return false;
        }
            

Cluster 1 (9 files, similarity: 0.768)

entertailion_____DIAL_____ServerFinder
		if (progressDialog.isShowing()) {
			try {
				progressDialog.dismiss();
			} catch (Throwable e) {
				Log.e(LOG_TAG, "showOtherDevices", e);
			}
		}
            
meganz_____android_____AudioVideoPlayerLollipop
                if (moveToTrashStatusDialog.isShowing()){
                    try {
                        moveToTrashStatusDialog.dismiss();
                    }
                    catch (Exception ex) {}
                    Snackbar.make(containerAudioVideoPlayer, getString(R.string.context_correctly_removed), Snackbar.LENGTH_LONG).show();
                }
            
PanicInitiative_____PanicButton_____HomeActivity
            if (pDialog.isShowing())
				try {
					pDialog.dismiss();
				} catch (Exception e) {
					e.printStackTrace();
				}