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
newInstance ( Dialog  dialog)

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
show ( FragmentManager  manager, @ Nullable String  tag)

This method is deprecated.

Inherited Constants

From android.content.ComponentCallbacks2
static final int
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.

static final int

This field is deprecated.

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
dismiss ()

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
onAttach ( Context  p)

This method is deprecated.

void
onCreate ( Bundle  p)

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
onStart ()

This method is deprecated.

void
onStop ()

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
equals ( Object  p)

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
getHost ()

This method is deprecated.

final int
getId ()

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
getTag ()

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
getView ()

This method is deprecated.

final int

This method is deprecated.

static Fragment
instantiate ( Context  p,  String  p1)

This method is deprecated.

final boolean
isAdded ()

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
onCreateView ( LayoutInflater  p,  ViewGroup  p1,  Bundle  p2)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onHiddenChanged (boolean p)

This method is deprecated.

void
onInflate ( Activity  p,  AttributeSet  p1,  Bundle  p2)

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
onPause ()

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
onViewCreated ( View  p,  Bundle  p1)

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
setTargetFragment ( Fragment  p, int p1)

This method is deprecated.

void
setUserVisibleHint (boolean p)

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void
startActivityForResult ( Intent  p, int p1)

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)
Create a Mobile Website
View Site in Mobile | Classic
Share by: