ErrorDialogFragment

public class ErrorDialogFragment extends DialogFragment

Wraps the Dialog returned by getErrorDialog(Activity, int, int) by using DialogFragment so that it can be properly managed by the Activity.

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

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

static ErrorDialogFragment
newInstance(Dialog dialog, DialogInterface.OnCancelListener cancelListener)
Create a DialogFragment for displaying the getErrorDialog(Activity, int, int) with an OnCancelListener.
static ErrorDialogFragment
void
Dialog
onCreateDialog(Bundle savedInstanceState)
Returns a Dialog created by getErrorDialog(Activity, int, int) with the provided errorCode, activity, request code, and cancel listener.
void

Inherited Method Summary

Public Constructors

public ErrorDialogFragment ()

Public Methods

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

Create a DialogFragment for displaying the getErrorDialog(Activity, int, int) with an OnCancelListener.

Parameters
dialog The Dialog created by getErrorDialog(Activity, int, int).
cancelListener A DialogInterface.OnCancelListener for when a user cancels the DialogFragment.
Returns

public static ErrorDialogFragment newInstance (Dialog dialog)

Parameters
dialog The Dialog created by getErrorDialog(Activity, int, int).
Returns

public void onCancel (DialogInterface dialog)

public Dialog onCreateDialog (Bundle savedInstanceState)

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

Parameters
savedInstanceState Not used.

public void show (FragmentManager manager, String tag)