SupportErrorDialogFragment

public class SupportErrorDialogFragment 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

Inherited Field Summary

Public Constructor Summary

Public Method Summary

static SupportErrorDialogFragment
static SupportErrorDialogFragment
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 SupportErrorDialogFragment ()

Public Methods

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

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)