public class

PlayServicesErrorActivity

extends FragmentActivity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ androidx.core.app.ComponentActivity
             ↳ androidx.activity.ComponentActivity
               ↳ androidx.fragment.app.FragmentActivity
                 ↳ com.urbanairship.google.PlayServicesErrorActivity

Class Overview

Activity that handles errors when trying to use Google Play services. Using this activity is completely optional. Instead Google Play services errors can be resolved by following the Google Play Service setup instructions .

To use this activity, add ` under the application tag in the AndroidManifest.xml. Then in the main activity's onStart call handleAnyPlayServicesError(android.content.Context) to handle any play service errors if there are any. PlayServicesErrorActivity will then show the user any resolution dialogs that it can, and automatically restart push if needed.

The error dialog will be shown on a blank activity with the default theme. To show the error dialog on top of one of the application's activities, set the theme for the activity in the AndroidManifest to `android:theme="@android:style/Theme.Translucent.NoTitleBar"`. This will force the activity to be completely translucent making the error dialogs appear to be on top of the calling activity.

This activity requires the Android Support v4 library.

Summary

Nested Classes
class PlayServicesErrorActivity.ErrorDialogFragment A DialogFragment that wraps Google Play services error dialogs. 
[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
PlayServicesErrorActivity()
Protected Methods
void onActivityResult(int requestCode, int resultCode, Intent data)
void onStart()
void onStop()
[Expand]
Inherited Methods
From class androidx.fragment.app.FragmentActivity
From class androidx.activity.ComponentActivity
From class androidx.core.app.ComponentActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface androidx.activity.OnBackPressedDispatcherOwner
From interface androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback
From interface androidx.core.app.ActivityCompat.RequestPermissionsRequestCodeValidator
From interface androidx.core.view.KeyEventDispatcher.Component
From interface androidx.lifecycle.HasDefaultViewModelProviderFactory
From interface androidx.lifecycle.LifecycleOwner
From interface androidx.lifecycle.ViewModelStoreOwner
From interface androidx.savedstate.SavedStateRegistryOwner

Public Constructors

public PlayServicesErrorActivity ()

Protected Methods

protected void onActivityResult (int requestCode, int resultCode, Intent data)

protected void onStart ()

protected void onStop ()