Hide

ErrorDialogFragment

public class ErrorDialogFragment extends DialogFragment
java.lang.Object
   ↳ android.app.Fragment
     ↳ android.app.DialogFragment
       ↳ com.google.android.gms.common.ErrorDialogFragment

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

Use this class only if you are targeting API 12 and above. Otherwise, use SupportErrorDialogFragment.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

static ErrorDialogFragment
static ErrorDialogFragment
void
Dialog
onCreateDialog(Bundle savedInstanceState)
void
show(FragmentManager manager, String tag)

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)