SupportErrorDialogFragment

public class SupportErrorDialogFragment 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 SupportErrorDialogFragment
newInstance(Dialog dialog, DialogInterface.OnCancelListener cancelListener)
Create a DialogFragment for displaying the getErrorDialog(Activity, int, int) with an OnCancelListener.
static SupportErrorDialogFragment
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 SupportErrorDialogFragment ()

Public Methods

public static SupportErrorDialogFragment 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.

public static SupportErrorDialogFragment newInstance (Dialog dialog)

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

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)