DialogFragment onCancel - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for DialogFragment onCancel method.

This code example shows how to use the following methods:onCancel
        return dialog;
    } 
 
    @Override 
    public void onCancel(DialogInterface dialog) {
        super.onCancel(dialog);
 
        if (mOnCancelListener != null) {
            mOnCancelListener.onCancel(dialog);
        } 
    } 
 
    public static class ProgressDialogFragmentBuilder { 
 
        private FragmentActivity mActivity;
        private String mMessage = null;
        private OnCancelListener mOnCancelListener = null;
        private boolean mCancelable = true;
 
        public ProgressDialogFragmentBuilder(FragmentActivity activity) {
6
CodeRank
This code example shows how to use the following methods:onCancel, getActivity
        dismiss();
    } 
 
    @Override 
    public void onCancel(DialogInterface dialog) {
        super.onCancel(dialog);
        getActivity().finish();
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:onCancel, getView, startActivity
		OnEditorActionListener {
 
	@Override 
	public void onCancel(DialogInterface dialog) {
		// TODO Auto-generated method stub 
		super.onCancel(dialog);
		 
		Intent intent = new Intent(getView().getContext(),
				HighscoreActivity2.class); 
		startActivity(intent);
	} 
 
	private EditText mEditText;
 
	public HighscoreAddDialog() { 
		// Empty constructor required for DialogFragment 
	} 
 
	public interface HighscoreAddDialogListener { 
		void onFinishEditDialog(String inputText);
5
CodeRank
This code example shows how to use the following methods:onCancel, getActivity, getTag
            return progressDialog;
        } 
 
        @Override 
        public void onCancel(DialogInterface dialog) {
            super.onCancel(dialog);
            FragmentActivity activity = getActivity();
            if (activity == null) {
                return; 
            } 
 
            Fragment fragment =
                    activity.getSupportFragmentManager().findFragmentByTag(TAG_PLUS_CLIENT);
            if (fragment instanceof PlusClientFragment) {
                ((PlusClientFragment) fragment).onDialogCanceled(getTag());
            } 
        } 
 
        @Override 
        public void onDismiss(DialogInterface dialog) {
5
CodeRank
This code example shows how to use the following methods:onCancel, getActivity
		return dialog;
	} 
 
    @Override 
    public void onCancel(DialogInterface dialog) {
        super.onCancel(dialog);
        ((DeterminateProgressDialogListener) getActivity()).onDeterminateDialogCancel();
    } 
} 
5
CodeRank
This code example shows how to use the following methods:onCancel
   CarrierTosDialogFragment.CarrierTosWebViewClient getCarrierTosWebViewClient(View var1, View var2) {
      return new CarrierTosDialogFragment.CarrierTosWebViewClient(var1, var2);
   } 
 
   public void onCancel(DialogInterface var1) {
      super.onCancel(var1);
      CarrierTosDialogFragment.CarrierTosResultListener var2 = this.mListener;
      CarrierTosDialogFragment.CarrierTosResultListener.TosResult var3 = CarrierTosDialogFragment.CarrierTosResultListener.TosResult.CANCELED;
      var2.onCarrierTosResult(var3);
   } 
 
   public void onClick(View var1) {
      switch(var1.getId()) {
      case 2131755094: 
         PreferenceFile.SharedPreference var3 = BillingPreferences.ACCEPTED_CARRIER_TOS_VERSION;
         String var4 = this.mTosVersion;
         var3.put(var4);
         CarrierTosDialogFragment.CarrierTosResultListener var5 = this.mListener;
         CarrierTosDialogFragment.CarrierTosResultListener.TosResult var6 = CarrierTosDialogFragment.CarrierTosResultListener.TosResult.SUCCESS;
         var5.onCarrierTosResult(var6);
4
CodeRank
This code example shows how to use the following methods:onCancel
		return dialog.create();
	} 
 
	@Override 
	public void onCancel(DialogInterface dialog) {
		super.onCancel(dialog);
		if (onCanceledListener != null)
			onCanceledListener.dialogCanceled();
	} 
 
	/** 
	 * Sets the positive button click listener. 
	 *  
	 * @param l 
	 *            The listener that is called when the positive button is 
	 *            clicked 
	 * @return This FragmentAlertDialog object to allow for chaining of calls to 
	 *         set methods. 
	 */ 
	public AlertDialogFragment setPositiveButtonClickListener(OnClickListener l) {
3
CodeRank
This code example shows how to use the following methods:onCancel
    this.mProgressIndicator.setVisibility(8);
  } 
 
  public void onCancel(DialogInterface paramDialogInterface)
  { 
    super.onCancel(paramDialogInterface);
    this.mListener.onCarrierBillingPasswordResult(CarrierBillingPasswordDialogFragment.CarrierBillingPasswordResultListener.PasswordResult.CANCELED, null);
  } 
 
  public Dialog onCreateDialog(Bundle paramBundle)
  { 
    View localView = View.inflate(getActivity(), 2130968612, null);
    Bundle localBundle = getArguments();
    String str1 = localBundle.getString("password_prompt");
    String str2 = localBundle.getString("password_forgot_url");
    this.mMainPasswordView = localView.findViewById(2131230826);
    this.mProgressIndicator = localView.findViewById(2131230808);
    hideProgressIndicator(); 
    TextView localTextView1 = (TextView)localView.findViewById(2131230828);
    TextView localTextView2 = (TextView)localView.findViewById(2131230830);
4
CodeRank
This code example shows how to use the following methods:onCancel
		return numberDialogShowRequest;
	} 
 
	@Override 
	public void onCancel(DialogInterface dialog) {
		super.onCancel(dialog);
		 
		// Restart the values 
		isDialogShownBool = false;
		numberDialogShowRequest = 0;
	} 
} 
4
CodeRank
This code example shows how to use the following methods:onCancel
     
 
    @Override 
    public void onCancel(DialogInterface dialog)
    { 
        super.onCancel(dialog);
        listener.onCancel(dialog);
    } 
     
    @Override 
    public int show(FragmentTransaction transaction, String tag) {
        return show(transaction, tag, false);
    } 
 
    public int show(FragmentTransaction transaction, String tag, boolean allowStateLoss) {
        transaction.add(this, tag);
        int mBackStackId;
        mBackStackId = allowStateLoss ? transaction.commitAllowingStateLoss() : transaction.commit();
        return mBackStackId;
    } 
4
CodeRank
onCancel Method Overview
This method will be invoked when the dialog is canceled.
See Code Examples for other Android DialogFragment Methods: