SupportErrorDialogFragment | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Inherited Constants | Ctors | Methods | Inherited Methods | [Expand All]
public class

# SupportErrorDialogFragment

extends DialogFragment

java.lang.Object
↳ | android.support.v4.app.Fragment
| ↳ | android.support.v4.app.DialogFragment
|  | ↳ | com.google.android.gms.common.SupportErrorDialogFragment

## Class Overview

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

To use this class, you must include the Android support library in your build path.

## Summary

[Expand] Inherited Constants
From class android.support.v4.app.DialogFragment
int | STYLE_NORMAL |
int | STYLE_NO_FRAME |
int | STYLE_NO_INPUT |
int | STYLE_NO_TITLE |

Public Constructors
| SupportErrorDialogFragment()

Public Methods
static SupportErrorDialogFragment | newInstance(Dialog dialog, DialogInterface.OnCancelListener cancelListener) Create a `DialogFragment` for displaying the `getErrorDialog(int, Activity, int)` with an OnCancelListener.
static SupportErrorDialogFragment | newInstance(Dialog dialog) Create a `DialogFragment` for displaying the `getErrorDialog(int, Activity, int)`.
void | onCancel(DialogInterface dialog)
Dialog | onCreateDialog(Bundle savedInstanceState) Returns a `Dialog` created by `getErrorDialog(int, Activity, int)` with the provided errorCode, activity, request code, and cancel listener.
void | show(FragmentManager manager, String tag)

[Expand] Inherited Methods
From class android.support.v4.app.DialogFragment
void | dismiss()
void | dismissAllowingStateLoss()
Dialog | getDialog()
LayoutInflater | getLayoutInflater(Bundle arg0)
boolean | getShowsDialog()
int | getTheme()
boolean | isCancelable()
void | onActivityCreated(Bundle arg0)
void | onAttach(Activity arg0)
void | onCancel(DialogInterface arg0)
void | onCreate(Bundle arg0)
Dialog | onCreateDialog(Bundle arg0)
void | onDestroyView()
void | onDetach()
void | onDismiss(DialogInterface arg0)
void | onSaveInstanceState(Bundle arg0)
void | onStart()
void | onStop()
void | setCancelable(boolean arg0)
void | setShowsDialog(boolean arg0)
void | setStyle(int arg0, int arg1)
void | show(FragmentManager arg0, String arg1)
int | show(FragmentTransaction arg0, String arg1)
From class android.support.v4.app.Fragment
void | dump(String arg0, FileDescriptor arg1, PrintWriter arg2, String[] arg3)
final boolean | equals(Object arg0)
final FragmentActivity | getActivity()
boolean | getAllowEnterTransitionOverlap()
boolean | getAllowReturnTransitionOverlap()
final Bundle | getArguments()
final FragmentManager | getChildFragmentManager()
Object | getEnterTransition()
Object | getExitTransition()
final FragmentManager | getFragmentManager()
final int | getId()
LayoutInflater | getLayoutInflater(Bundle arg0)
LoaderManager | getLoaderManager()
final Fragment | getParentFragment()
Object | getReenterTransition()
final Resources | getResources()
final boolean | getRetainInstance()
Object | getReturnTransition()
Object | getSharedElementEnterTransition()
Object | getSharedElementReturnTransition()
final String | getString(int arg0)
final String | getString(int arg0, Object... arg1)
final String | getTag()
final Fragment | getTargetFragment()
final int | getTargetRequestCode()
final CharSequence | getText(int arg0)
boolean | getUserVisibleHint()
View | getView()
final boolean | hasOptionsMenu()
final int | hashCode()
static Fragment | instantiate(Context arg0, String arg1)
static Fragment | instantiate(Context arg0, String arg1, Bundle arg2)
final boolean | isAdded()
final boolean | isDetached()
final boolean | isHidden()
final boolean | isInLayout()
final boolean | isMenuVisible()
final boolean | isRemoving()
final boolean | isResumed()
final boolean | isVisible()
void | onActivityCreated(Bundle arg0)
void | onActivityResult(int arg0, int arg1, Intent arg2)
void | onAttach(Activity arg0)
void | onConfigurationChanged(Configuration arg0)
boolean | onContextItemSelected(MenuItem arg0)
void | onCreate(Bundle arg0)
Animation | onCreateAnimation(int arg0, boolean arg1, int arg2)
void | onCreateContextMenu(ContextMenu arg0, View arg1, ContextMenu.ContextMenuInfo arg2)
void | onCreateOptionsMenu(Menu arg0, MenuInflater arg1)
View | onCreateView(LayoutInflater arg0, ViewGroup arg1, Bundle arg2)
void | onDestroy()
void | onDestroyOptionsMenu()
void | onDestroyView()
void | onDetach()
void | onHiddenChanged(boolean arg0)
void | onInflate(Activity arg0, AttributeSet arg1, Bundle arg2)
void | onLowMemory()
boolean | onOptionsItemSelected(MenuItem arg0)
void | onOptionsMenuClosed(Menu arg0)
void | onPause()
void | onPrepareOptionsMenu(Menu arg0)
void | onResume()
void | onSaveInstanceState(Bundle arg0)
void | onStart()
void | onStop()
void | onViewCreated(View arg0, Bundle arg1)
void | onViewStateRestored(Bundle arg0)
void | registerForContextMenu(View arg0)
void | setAllowEnterTransitionOverlap(boolean arg0)
void | setAllowReturnTransitionOverlap(boolean arg0)
void | setArguments(Bundle arg0)
void | setEnterSharedElementCallback(SharedElementCallback arg0)
void | setEnterTransition(Object arg0)
void | setExitSharedElementCallback(SharedElementCallback arg0)
void | setExitTransition(Object arg0)
void | setHasOptionsMenu(boolean arg0)
void | setInitialSavedState(Fragment.SavedState arg0)
void | setMenuVisibility(boolean arg0)
void | setReenterTransition(Object arg0)
void | setRetainInstance(boolean arg0)
void | setReturnTransition(Object arg0)
void | setSharedElementEnterTransition(Object arg0)
void | setSharedElementReturnTransition(Object arg0)
void | setTargetFragment(Fragment arg0, int arg1)
void | setUserVisibleHint(boolean arg0)
void | startActivity(Intent arg0)
void | startActivityForResult(Intent arg0, int arg1)
String | toString()
void | unregisterForContextMenu(View arg0)
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
From interface android.content.DialogInterface.OnCancelListener
abstract void | onCancel(DialogInterface arg0)
From interface android.content.DialogInterface.OnDismissListener
abstract void | onDismiss(DialogInterface arg0)
From interface android.content.ComponentCallbacks
abstract void | onConfigurationChanged(Configuration arg0)
abstract void | onLowMemory()
From interface android.view.View.OnCreateContextMenuListener
abstract void | onCreateContextMenu(ContextMenu arg0, View arg1, ContextMenu.ContextMenuInfo arg2)

## Public Constructors

#### public SupportErrorDialogFragment ()

## Public Methods

#### public static SupportErrorDialogFragment newInstance (Dialog dialog, DialogInterface.OnCancelListener cancelListener)

Create a `DialogFragment` for displaying the `getErrorDialog(int, Activity, int)` with an OnCancelListener.

##### Parameters

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

##### Returns

- The `SupportErrorDialogFragment`.

#### public static SupportErrorDialogFragment newInstance (Dialog dialog)

Create a `DialogFragment` for displaying the `getErrorDialog(int, Activity, int)`.

##### Parameters

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

##### Returns

- The `SupportErrorDialogFragment`.

#### public void onCancel (DialogInterface dialog)

#### public Dialog onCreateDialog (Bundle savedInstanceState)

Returns a `Dialog` created by `getErrorDialog(int, Activity, int)` with the provided errorCode, activity, request code, and cancel listener.

##### Parameters

savedInstanceState | Not used.

#### public void show (FragmentManager manager, String tag)