ErrorDialogFragment

public class ErrorDialogFragment extends DialogFragment


Wraps the Dialog returned by getErrorDialog by using so that it can be properly managed by the .

If you are using an Activity from the support library, use SupportErrorDialogFragment instead.

Summary

Public constructors

Public methods

static @NonNull ErrorDialogFragment

Create a DialogFragment for displaying the getErrorDialog.

static @NonNull ErrorDialogFragment
newInstance(
    Dialog dialog,
    @Nullable DialogInterface.OnCancelListener cancelListener
)

Create a DialogFragment for displaying the getErrorDialog with an OnCancelListener.

void

This method is deprecated.

@NonNull Dialog
onCreateDialog(@Nullable Bundle savedInstanceState)

Returns a Dialog created by getErrorDialog with the provided errorCode, activity, request code, and cancel listener.

void

This method is deprecated.

Inherited Constants

From android.content.ComponentCallbacks2
static final int
static final int
static final int
static final int
static final int
static final int
static final int
From android.app.DialogFragment
static final int

This field is deprecated.

static final int

This field is deprecated.

static final int

This field is deprecated.

static final int

This field is deprecated.

Inherited methods

From android.app.DialogFragment
void

This method is deprecated.

void

This method is deprecated.

void
dump(String p, FileDescriptor p1, PrintWriter p2, String[] p3)

This method is deprecated.

Dialog

This method is deprecated.

boolean

This method is deprecated.

int

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

LayoutInflater

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
setCancelable(boolean p)

This method is deprecated.

void
setShowsDialog(boolean p)

This method is deprecated.

void
setStyle(int p, int p1)

This method is deprecated.

int

This method is deprecated.

From android.app.Fragment
final boolean

This method is deprecated.

final Activity

This method is deprecated.

boolean

This method is deprecated.

boolean

This method is deprecated.

final Bundle

This method is deprecated.

final FragmentManager

This method is deprecated.

Context

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

final FragmentManager

This method is deprecated.

final Object

This method is deprecated.

final int

This method is deprecated.

final LayoutInflater

This method is deprecated.

LoaderManager

This method is deprecated.

final Fragment

This method is deprecated.

Transition

This method is deprecated.

final Resources

This method is deprecated.

final boolean

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

final String
getString(int p)

This method is deprecated.

final String

This method is deprecated.

final Fragment

This method is deprecated.

final int

This method is deprecated.

final CharSequence
getText(int p)

This method is deprecated.

boolean

This method is deprecated.

View

This method is deprecated.

final int

This method is deprecated.

static Fragment

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

void
onActivityResult(int p, int p1, Intent p2)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

boolean

This method is deprecated.

Animator
onCreateAnimator(int p, boolean p1, int p2)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

View

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onHiddenChanged(boolean p)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onRequestPermissionsResult(int p, String[] p1, int[] p2)

This method is deprecated.

void

This method is deprecated.

void
onTrimMemory(int p)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

final void
requestPermissions(String[] p, int p1)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
setHasOptionsMenu(boolean p)

This method is deprecated.

void

This method is deprecated.

void
setMenuVisibility(boolean p)

This method is deprecated.

void

This method is deprecated.

void
setRetainInstance(boolean p)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
setUserVisibleHint(boolean p)

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
startIntentSenderForResult(
    IntentSender p,
    int p1,
    Intent p2,
    int p3,
    int p4,
    int p5,
    Bundle p6
)

This method is deprecated.

void

This method is deprecated.

String

This method is deprecated.

void

This method is deprecated.

Public constructors

ErrorDialogFragment

public ErrorDialogFragment()

Public methods

newInstance

public static @NonNull ErrorDialogFragment newInstance(Dialog dialog)

Create a DialogFragment for displaying the getErrorDialog.

Parameters
Dialog dialog

The Dialog created by getErrorDialog.

newInstance

public static @NonNull ErrorDialogFragment newInstance(
    Dialog dialog,
    @Nullable DialogInterface.OnCancelListener cancelListener
)

Create a DialogFragment for displaying the getErrorDialog with an OnCancelListener.

Parameters
Dialog dialog

The Dialog created by getErrorDialog.

@Nullable DialogInterface.OnCancelListener cancelListener

A DialogInterface.OnCancelListener for when a user cancels the DialogFragment.

onCancel

public void onCancel(DialogInterface dialog)

onCreateDialog

public @NonNull Dialog onCreateDialog(@Nullable Bundle savedInstanceState)

Returns a Dialog created by getErrorDialog with the provided errorCode, activity, request code, and cancel listener.

Parameters
@Nullable Bundle savedInstanceState

Not used.

show

public void show(FragmentManager manager, @Nullable String tag)