ErrorDialogFragment

public class ErrorDialogFragment extends DialogFragment

Wraps the Dialog returned by GoogleApiAvailability.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
static ErrorDialogFragment
void
Dialog
onCreateDialog(Bundle savedInstanceState)
Returns a Dialog created by GoogleApiAvailability.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 GoogleApiAvailability.getErrorDialog(Activity, int, int) with an OnCancelListener.

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

public void onCancel (DialogInterface dialog)

public Dialog onCreateDialog (Bundle savedInstanceState)

Returns a Dialog created by GoogleApiAvailability.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)