ErrorDialogFragment

public classErrorDialogFragmentextendsDialogFragment

Wraps theDialogreturned by GoogleApiAvailability.getErrorDialog(Activity, int, int)by usingDialogFragment so that it can be properly managed by theActivity.

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

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

staticErrorDialogFragment
staticErrorDialogFragment
void
Dialog
onCreateDialog(Bundle savedInstanceState)
Returns aDialog created by GoogleApiAvailability.getErrorDialog(Activity, int, int)with the provided errorCode, activity, request code, and cancel listener.
void

Inherited Method Summary

Public Constructors

publicErrorDialogFragment()

Public Methods

public staticErrorDialogFragment newInstance(Dialogdialog,DialogInterface.OnCancelListener cancelListener)

Create aDialogFragment for displaying the GoogleApiAvailability.getErrorDialog(Activity, int, int)with an OnCancelListener.

Parameters
dialog TheDialog created by GoogleApiAvailability.getErrorDialog(Activity, int, int).
cancelListener A DialogInterface.OnCancelListenerfor when a user cancels the DialogFragment.
Returns

public voidonCancel(DialogInterface dialog)

publicDialogonCreateDialog(Bundle savedInstanceState)

Returns aDialogcreated by GoogleApiAvailability.getErrorDialog(Activity, int, int)with the provided errorCode, activity, request code, and cancel listener.

Parameters
savedInstanceState Not used.

public voidshow(FragmentManager manager,String tag)