# ConfirmationActivity

Artifact: [androidx.wear:wear](https://developer.android.com/jetpack/androidx/releases/wear) [View Source](https://cs.android.com/search?q=file:androidx/wear/activity/ConfirmationActivity.java+class:androidx.wear.activity.ConfirmationActivity) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

*** ** * ** ***

<br />

```
public class ConfirmationActivity extends Activity
```

<br />

|---|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||||
| ↳ | [android.content.Context](https://developer.android.com/reference/android/content/Context.html) |||||
|   | ↳ | [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) ||||
|   |   | ↳ | [android.view.ContextThemeWrapper](https://developer.android.com/reference/android/view/ContextThemeWrapper.html) |||
|   |   |   | ↳ | [android.app.Activity](https://developer.android.com/reference/android/app/Activity.html) ||
|   |   |   |   | ↳ | [androidx.wear.activity.ConfirmationActivity](https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity) |

*** ** * ** ***

This Activity is used to display confirmation animations after the user completes an action on the wearable. There are three types of confirmations: Success: the action was completed successfully on the wearable. Failure: the action failed to complete. Open on Phone: the action has caused something to display on the phone, or in order to complete the action, the user will need to go to their phone to continue.

It is the responsibility of the wearable application developer to determine whether the action has succeeded, failed, or requires the user to go to their phone, and trigger the appropriate confirmation.

To configure the confirmation according to the result of the action, set the extra `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#EXTRA_ANIMATION_TYPE()` to one of the following values:


`https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#SUCCESS_ANIMATION()`

:
    Displays a positive confirmation animation with an optional message.


`https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#OPEN_ON_PHONE_ANIMATION()`

:
    Displays an animation indicating an action has been sent to a paired device.


`https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#FAILURE_ANIMATION()`

:
    Displays a generic failure page with an optional message.

An optional message, included in the extra `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#EXTRA_MESSAGE()` will be displayed horizontally centered below the animation.

An optional duration in milliseconds to keep the confirmation activity visible for, included in the extra `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#EXTRA_ANIMATION_DURATION_MILLIS()`

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#EXTRA_ANIMATION_DURATION_MILLIS() = "androidx.wear.activity.extra.ANIMATION_DURATION_MILLIS"` The lookup key for an optional int that defines the duration in milliseconds that the confirmation activity should be displayed. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#EXTRA_ANIMATION_TYPE() = "androidx.wear.activity.extra.ANIMATION_TYPE"` The lookup key for an optional int that defines the animation type that should be displayed. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#EXTRA_MESSAGE() = "androidx.wear.activity.extra.MESSAGE"` Used as a string extra field on an intent for this activity to define the message that should be displayed to the user while the activity is visible. |
| `static final int` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#FAILURE_ANIMATION() = 3` |
| `static final int` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#OPEN_ON_PHONE_ANIMATION() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#SUCCESS_ANIMATION() = 1` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#ConfirmationActivity()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#onCreate(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html savedInstanceState)` |

| ### Protected methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#onAnimationFinished()()` Override this method if you wish to provide different than out-of-the-box behavior when the confirmation animation finishes. |

### Inherited Constants

From [android.app.Activity](https://developer.android.com/reference/android/app/Activity.html) `static final int` `https://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DIALER = 1` `static final int` `https://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DISABLE = 0` `static final int` `https://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_GLOBAL = 4` `static final int` `https://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_LOCAL = 3` `static final int` `https://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SHORTCUT = 2` `static final int[]` `https://developer.android.com/reference/android/app/Activity.html#FOCUSED_STATE_SET` `static final int` `https://developer.android.com/reference/android/app/Activity.html#FULLSCREEN_MODE_REQUEST_ENTER = 1` `static final int` `https://developer.android.com/reference/android/app/Activity.html#FULLSCREEN_MODE_REQUEST_EXIT = 0` `static final int` `https://developer.android.com/reference/android/app/Activity.html#OVERRIDE_TRANSITION_CLOSE = 1` `static final int` `https://developer.android.com/reference/android/app/Activity.html#OVERRIDE_TRANSITION_OPEN = 0` `static final int` `https://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED = 0` `static final int` `https://developer.android.com/reference/android/app/Activity.html#RESULT_FIRST_USER = 1` `static final int` `https://developer.android.com/reference/android/app/Activity.html#RESULT_OK = -1` From [android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2.html) `static final int` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_BACKGROUND = 40` `static final int` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_COMPLETE = 80`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_MODERATE = 60`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL = 15`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW = 10`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE = 5`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN = 20` From [android.content.Context](https://developer.android.com/reference/android/content/Context.html) `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#ACCESSIBILITY_SERVICE = "accessibility"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#ACCOUNT_SERVICE = "account"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#ACTIVITY_SERVICE = "activity"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#ADVANCED_PROTECTION_SERVICE = "advanced_protection"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#ALARM_SERVICE = "alarm"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#APPWIDGET_SERVICE = "appwidget"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#APP_FUNCTION_SERVICE = "app_function"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#APP_OPS_SERVICE = "appops"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#APP_SEARCH_SERVICE = "app_search"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#AUDIO_SERVICE = "audio"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#AUTOFILL_SERVICE = "autofill"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#BATTERY_SERVICE = "batterymanager"` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_ABOVE_CLIENT = 8` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_ADJUST_WITH_ACTIVITY = 128` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_ALLOW_ACTIVITY_STARTS = 512` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_ALLOW_OOM_MANAGEMENT = 16` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_AUTO_CREATE = 1` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_DEBUG_UNBIND = 2` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_EXTERNAL_SERVICE = -2147483648` `static final long` `https://developer.android.com/reference/android/content/Context.html#BIND_EXTERNAL_SERVICE_LONG = 4611686018427387904` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_IMPORTANT = 64` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_INCLUDE_CAPABILITIES = 4096` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_NOT_FOREGROUND = 4` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_NOT_PERCEPTIBLE = 256` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_PACKAGE_ISOLATED_PROCESS = 16384` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_SHARED_ISOLATED_PROCESS = 8192` `static final int` `https://developer.android.com/reference/android/content/Context.html#BIND_WAIVE_PRIORITY = 32` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#BIOMETRIC_SERVICE = "biometric"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#BLOB_STORE_SERVICE = "blob_store"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#BLUETOOTH_SERVICE = "bluetooth"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#BUGREPORT_SERVICE = "bugreport"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CAMERA_SERVICE = "camera"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CAPTIONING_SERVICE = "captioning"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CARRIER_CONFIG_SERVICE = "carrier_config"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CHOOSER_SERVICE = "chooser"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CLIPBOARD_SERVICE = "clipboard"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#COMPANION_DEVICE_SERVICE = "companiondevice"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CONNECTIVITY_DIAGNOSTICS_SERVICE = "connectivity_diagnostics"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CONNECTIVITY_SERVICE = "connectivity"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CONSUMER_IR_SERVICE = "consumer_ir"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CONTACT_KEYS_SERVICE = "contact_keys"` `static final int` `https://developer.android.com/reference/android/content/Context.html#CONTEXT_IGNORE_SECURITY = 2` `static final int` `https://developer.android.com/reference/android/content/Context.html#CONTEXT_INCLUDE_CODE = 1` `static final int` `https://developer.android.com/reference/android/content/Context.html#CONTEXT_RESTRICTED = 4` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CREDENTIAL_SERVICE = "credential"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#CROSS_PROFILE_APPS_SERVICE = "crossprofileapps"` `static final int` `https://developer.android.com/reference/android/content/Context.html#DEVICE_ID_DEFAULT = 0` `static final int` `https://developer.android.com/reference/android/content/Context.html#DEVICE_ID_INVALID = -1` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#DEVICE_LOCK_SERVICE = "device_lock"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#DEVICE_POLICY_SERVICE = "device_policy"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#DISPLAY_HASH_SERVICE = "display_hash"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#DISPLAY_SERVICE = "display"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#DOMAIN_VERIFICATION_SERVICE = "domain_verification"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#DOWNLOAD_SERVICE = "download"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#DROPBOX_SERVICE = "dropbox"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#EUICC_SERVICE = "euicc"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#FILE_INTEGRITY_SERVICE = "file_integrity"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#FILE_SERVICE = "file"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#GAME_SERVICE = "game"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#GRAMMATICAL_INFLECTION_SERVICE = "grammatical_inflection"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#HARDWARE_PROPERTIES_SERVICE = "hardware_properties"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#HEALTHCONNECT_SERVICE = "healthconnect"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#INPUT_METHOD_SERVICE = "input_method"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#INPUT_SERVICE = "input"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#IPSEC_SERVICE = "ipsec"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#JOB_SCHEDULER_SERVICE = "jobscheduler"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#KEYGUARD_SERVICE = "keyguard"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#KEYSTORE_SERVICE = "keystore"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#LAUNCHER_APPS_SERVICE = "launcherapps"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#LAYOUT_INFLATER_SERVICE = "layout_inflater"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#LOCALE_SERVICE = "locale"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#LOCATION_SERVICE = "location"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#MEDIA_COMMUNICATION_SERVICE = "media_communication"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#MEDIA_METRICS_SERVICE = "media_metrics"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#MEDIA_PROJECTION_SERVICE = "media_projection"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#MEDIA_QUALITY_SERVICE = "media_quality"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#MEDIA_ROUTER_SERVICE = "media_router"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#MEDIA_SESSION_SERVICE = "media_session"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#MIDI_SERVICE = "midi"` `static final int` `https://developer.android.com/reference/android/content/Context.html#MODE_APPEND = 32768` `static final int` `https://developer.android.com/reference/android/content/Context.html#MODE_ENABLE_WRITE_AHEAD_LOGGING = 8` `static final int` `https://developer.android.com/reference/android/content/Context.html#MODE_MULTI_PROCESS = 4`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/content/Context.html#MODE_NO_LOCALIZED_COLLATORS = 16` `static final int` `https://developer.android.com/reference/android/content/Context.html#MODE_PRIVATE = 0` `static final int` `https://developer.android.com/reference/android/content/Context.html#MODE_WORLD_READABLE = 1`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/content/Context.html#MODE_WORLD_WRITEABLE = 2`

**This field is deprecated.**
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#NETWORK_STATS_SERVICE = "netstats"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#NFC_SERVICE = "nfc"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#NOTIFICATION_SERVICE = "notification"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#NPU_SERVICE = "npu"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#NSD_SERVICE = "servicediscovery"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#OVERLAY_SERVICE = "overlay"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#PCC_SANDBOX_SERVICE = "pcc_sandbox"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#PEOPLE_SERVICE = "people"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#PERFORMANCE_HINT_SERVICE = "performance_hint"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#PERSISTENT_DATA_BLOCK_SERVICE = "persistent_data_block"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#POWER_SERVICE = "power"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#PRINT_SERVICE = "print"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#PROFILING_SERVICE = "profiling"` `static final int` `https://developer.android.com/reference/android/content/Context.html#RECEIVER_EXPORTED = 2` `static final int` `https://developer.android.com/reference/android/content/Context.html#RECEIVER_NOT_EXPORTED = 4` `static final int` `https://developer.android.com/reference/android/content/Context.html#RECEIVER_VISIBLE_TO_INSTANT_APPS = 1` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#RESTRICTIONS_SERVICE = "restrictions"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#ROLE_SERVICE = "role"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#SATELLITE_SERVICE = "satellite"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#SEARCH_SERVICE = "search"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#SECURITY_STATE_SERVICE = "security_state"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#SENSOR_SERVICE = "sensor"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#SERIAL_SERVICE = "serial"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#SHORTCUT_SERVICE = "shortcut"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#STATUS_BAR_SERVICE = "statusbar"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#STORAGE_SERVICE = "storage"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#STORAGE_STATS_SERVICE = "storagestats"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#SYSTEM_HEALTH_SERVICE = "systemhealth"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TELECOM_SERVICE = "telecom"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_IMS_SERVICE = "telephony_ims"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_PHONE_NUMBER_SERVICE = "telephony_phone_number"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_SERVICE = "phone"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_SUBSCRIPTION_SERVICE = "telephony_subscription_service"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TETHERING_SERVICE = "tethering"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TEXT_CLASSIFICATION_SERVICE = "textclassification"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TEXT_SERVICES_MANAGER_SERVICE = "textservices"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TV_AD_SERVICE = "tv_ad"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TV_INPUT_SERVICE = "tv_input"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#TV_INTERACTIVE_APP_SERVICE = "tv_interactive_app"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#UI_MODE_SERVICE = "uimode"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#USAGE_STATS_SERVICE = "usagestats"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#USB_SERVICE = "usb"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#USER_SERVICE = "user"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#VIBRATOR_MANAGER_SERVICE = "vibrator_manager"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#VIBRATOR_SERVICE = "vibrator"`

**This field is deprecated.**
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#VIRTUAL_DEVICE_SERVICE = "virtualdevice"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#VPN_MANAGEMENT_SERVICE = "vpn_management"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#WALLPAPER_SERVICE = "wallpaper"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#WEB_APP_SERVICE = "web_app"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#WIFI_AWARE_SERVICE = "wifiaware"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#WIFI_P2P_SERVICE = "wifip2p"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#WIFI_RTT_RANGING_SERVICE = "wifirtt"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#WIFI_SERVICE = "wifi"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#WINDOW_SERVICE = "window"`

### Inherited methods

From [android.app.Activity](https://developer.android.com/reference/android/app/Activity.html) `void` `https://developer.android.com/reference/android/app/Activity.html#addContentView(android.view.View, android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View.html view, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html params)` `void` `https://developer.android.com/reference/android/app/Activity.html#attachBaseContext(android.content.Context)(https://developer.android.com/reference/android/content/Context.html newBase)` `void` `https://developer.android.com/reference/android/app/Activity.html#clearOverrideActivityTransition(int)(int overrideType)` `void` `https://developer.android.com/reference/android/app/Activity.html#closeContextMenu()()` `void` `https://developer.android.com/reference/android/app/Activity.html#closeOptionsMenu()()` `https://developer.android.com/reference/android/app/PendingIntent.html` `https://developer.android.com/reference/android/app/Activity.html#createPendingResult(int, android.content.Intent, int)(int requestCode, https://developer.android.com/reference/android/content/Intent.html data, int flags)` `final void` `https://developer.android.com/reference/android/app/Activity.html#dismissDialog(int)(int id)`

**This method is deprecated.**
`final void` `https://developer.android.com/reference/android/app/Activity.html#dismissKeyboardShortcutsHelper()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#dispatchGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html ev)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#dispatchKeyEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#dispatchKeyShortcutEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#dispatchTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html ev)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#dispatchTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html ev)` `void` `https://developer.android.com/reference/android/app/Activity.html#dump(java.lang.String, java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[])(https://developer.android.com/reference/java/lang/String.html prefix, https://developer.android.com/reference/java/io/FileDescriptor.html fd, https://developer.android.com/reference/java/io/PrintWriter.html writer, String[] args)` `void` `https://developer.android.com/reference/android/app/Activity.html#enterPictureInPictureMode()()`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#enterPictureInPictureMode(android.app.PictureInPictureParams)(https://developer.android.com/reference/android/app/PictureInPictureParams.html params)` `T` `<T extends https://developer.android.com/reference/android/view/View.html> https://developer.android.com/reference/android/app/Activity.html#findViewById(int)(int id)` `void` `https://developer.android.com/reference/android/app/Activity.html#finish()()` `void` `https://developer.android.com/reference/android/app/Activity.html#finishActivity(int)(int requestCode)` `void` `https://developer.android.com/reference/android/app/Activity.html#finishActivityFromChild(android.app.Activity, int)(https://developer.android.com/reference/android/app/Activity.html child, int requestCode)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#finishAffinity()()` `void` `https://developer.android.com/reference/android/app/Activity.html#finishAfterTransition()()` `void` `https://developer.android.com/reference/android/app/Activity.html#finishAndRemoveTask()()` `void` `https://developer.android.com/reference/android/app/Activity.html#finishFromChild(android.app.Activity)(https://developer.android.com/reference/android/app/Activity.html child)`

**This method is deprecated.**
`https://developer.android.com/reference/android/app/ActionBar.html` `https://developer.android.com/reference/android/app/Activity.html#getActionBar()()` `final https://developer.android.com/reference/android/app/Application.html` `https://developer.android.com/reference/android/app/Activity.html#getApplication()()` `https://developer.android.com/reference/android/app/ComponentCaller.html` `https://developer.android.com/reference/android/app/Activity.html#getCaller()()` `https://developer.android.com/reference/android/content/ComponentName.html` `https://developer.android.com/reference/android/app/Activity.html#getCallingActivity()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/app/Activity.html#getCallingPackage()()` `int` `https://developer.android.com/reference/android/app/Activity.html#getChangingConfigurations()()` `https://developer.android.com/reference/android/content/ComponentName.html` `https://developer.android.com/reference/android/app/Activity.html#getComponentName()()` `https://developer.android.com/reference/android/transition/Scene.html` `https://developer.android.com/reference/android/app/Activity.html#getContentScene()()` `https://developer.android.com/reference/android/transition/TransitionManager.html` `https://developer.android.com/reference/android/app/Activity.html#getContentTransitionManager()()` `https://developer.android.com/reference/android/app/ComponentCaller.html` `https://developer.android.com/reference/android/app/Activity.html#getCurrentCaller()()` `https://developer.android.com/reference/android/view/View.html` `https://developer.android.com/reference/android/app/Activity.html#getCurrentFocus()()` `https://developer.android.com/reference/android/app/FragmentManager.html` `https://developer.android.com/reference/android/app/Activity.html#getFragmentManager()()`

**This method is deprecated.**
`https://developer.android.com/reference/android/app/ComponentCaller.html` `https://developer.android.com/reference/android/app/Activity.html#getInitialCaller()()` `https://developer.android.com/reference/android/content/Intent.html` `https://developer.android.com/reference/android/app/Activity.html#getIntent()()` `https://developer.android.com/reference/java/lang/Object.html` `https://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/app/Activity.html#getLaunchedFromPackage()()` `int` `https://developer.android.com/reference/android/app/Activity.html#getLaunchedFromUid()()` `https://developer.android.com/reference/android/view/LayoutInflater.html` `https://developer.android.com/reference/android/app/Activity.html#getLayoutInflater()()` `https://developer.android.com/reference/android/app/LoaderManager.html` `https://developer.android.com/reference/android/app/Activity.html#getLoaderManager()()`

**This method is deprecated.**
`https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/app/Activity.html#getLocalClassName()()` `int` `https://developer.android.com/reference/android/app/Activity.html#getMaxNumPictureInPictureActions()()` `final https://developer.android.com/reference/android/media/session/MediaController.html` `https://developer.android.com/reference/android/app/Activity.html#getMediaController()()` `https://developer.android.com/reference/android/view/MenuInflater.html` `https://developer.android.com/reference/android/app/Activity.html#getMenuInflater()()` `https://developer.android.com/reference/android/window/OnBackInvokedDispatcher.html` `https://developer.android.com/reference/android/app/Activity.html#getOnBackInvokedDispatcher()()` `final https://developer.android.com/reference/android/app/Activity.html` `https://developer.android.com/reference/android/app/Activity.html#getParent()()`

**This method is deprecated.**
`https://developer.android.com/reference/android/content/Intent.html` `https://developer.android.com/reference/android/app/Activity.html#getParentActivityIntent()()` `https://developer.android.com/reference/android/content/SharedPreferences.html` `https://developer.android.com/reference/android/app/Activity.html#getPreferences(int)(int mode)` `https://developer.android.com/reference/android/net/Uri.html` `https://developer.android.com/reference/android/app/Activity.html#getReferrer()()` `int` `https://developer.android.com/reference/android/app/Activity.html#getRequestedOrientation()()` `final https://developer.android.com/reference/android/view/SearchEvent.html` `https://developer.android.com/reference/android/app/Activity.html#getSearchEvent()()` `final https://developer.android.com/reference/android/window/SplashScreen.html` `https://developer.android.com/reference/android/app/Activity.html#getSplashScreen()()` `https://developer.android.com/reference/java/lang/Object.html` `https://developer.android.com/reference/android/app/Activity.html#getSystemService(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` `int` `https://developer.android.com/reference/android/app/Activity.html#getTaskId()()` `final https://developer.android.com/reference/java/lang/CharSequence.html` `https://developer.android.com/reference/android/app/Activity.html#getTitle()()` `final int` `https://developer.android.com/reference/android/app/Activity.html#getTitleColor()()` `https://developer.android.com/reference/android/app/VoiceInteractor.html` `https://developer.android.com/reference/android/app/Activity.html#getVoiceInteractor()()` `final int` `https://developer.android.com/reference/android/app/Activity.html#getVolumeControlStream()()` `https://developer.android.com/reference/android/view/Window.html` `https://developer.android.com/reference/android/app/Activity.html#getWindow()()` `https://developer.android.com/reference/android/view/WindowManager.html` `https://developer.android.com/reference/android/app/Activity.html#getWindowManager()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#hasWindowFocus()()` `void` `https://developer.android.com/reference/android/app/Activity.html#invalidateOptionsMenu()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isActivityTransitionRunning()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isChangingConfigurations()()` `final boolean` `https://developer.android.com/reference/android/app/Activity.html#isChild()()`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#isDestroyed()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isFinishing()()` `final boolean` `https://developer.android.com/reference/android/app/Activity.html#isHandoffEnabled()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isImmersive()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isInMultiWindowMode()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isInPictureInPictureMode()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isLaunchedFromBubble()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isLocalVoiceInteractionSupported()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isTaskRoot()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isVoiceInteraction()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#isVoiceInteractionRoot()()` `final https://developer.android.com/reference/android/database/Cursor.html` `https://developer.android.com/reference/android/app/Activity.html#managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)(

https://developer.android.com/reference/android/net/Uri.html uri,

String[] projection,

https://developer.android.com/reference/java/lang/String.html selection,

String[] selectionArgs,

https://developer.android.com/reference/java/lang/String.html sortOrder

)`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#moveTaskToBack(boolean)(boolean nonRoot)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#navigateUpTo(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html upIntent)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#navigateUpToFromChild(android.app.Activity, android.content.Intent)(https://developer.android.com/reference/android/app/Activity.html child, https://developer.android.com/reference/android/content/Intent.html upIntent)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onActionModeFinished(android.view.ActionMode)(https://developer.android.com/reference/android/view/ActionMode.html mode)` `void` `https://developer.android.com/reference/android/app/Activity.html#onActionModeStarted(android.view.ActionMode)(https://developer.android.com/reference/android/view/ActionMode.html mode)` `void` `https://developer.android.com/reference/android/app/Activity.html#onActivityReenter(int, android.content.Intent)(int resultCode, https://developer.android.com/reference/android/content/Intent.html data)` `void` `https://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)(int requestCode, int resultCode, https://developer.android.com/reference/android/content/Intent.html data)` `void` `https://developer.android.com/reference/android/app/Activity.html#onApplyThemeResource(android.content.res.Resources.Theme, int, boolean)(https://developer.android.com/reference/android/content/res/Resources.Theme.html theme, int resid, boolean first)` `void` `https://developer.android.com/reference/android/app/Activity.html#onAttachFragment(android.app.Fragment)(https://developer.android.com/reference/android/app/Fragment.html fragment)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onAttachedToWindow()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onBackPressed()()`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onChildTitleChanged(android.app.Activity, java.lang.CharSequence)(https://developer.android.com/reference/android/app/Activity.html childActivity, https://developer.android.com/reference/java/lang/CharSequence.html title)` `void` `https://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration.html newConfig)` `void` `https://developer.android.com/reference/android/app/Activity.html#onContentChanged()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onContextItemSelected(android.view.MenuItem)(https://developer.android.com/reference/android/view/MenuItem.html item)` `void` `https://developer.android.com/reference/android/app/Activity.html#onContextMenuClosed(android.view.Menu)(https://developer.android.com/reference/android/view/Menu.html menu)` `void` `https://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo)(

https://developer.android.com/reference/android/view/ContextMenu.html menu,

https://developer.android.com/reference/android/view/View.html v,

https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html menuInfo

)` `https://developer.android.com/reference/java/lang/CharSequence.html` `https://developer.android.com/reference/android/app/Activity.html#onCreateDescription()()` `https://developer.android.com/reference/android/app/Dialog.html` `https://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int)(int id)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)(https://developer.android.com/reference/android/app/TaskStackBuilder.html builder)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu)(https://developer.android.com/reference/android/view/Menu.html menu)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onCreatePanelMenu(int, android.view.Menu)(int featureId, https://developer.android.com/reference/android/view/Menu.html menu)` `https://developer.android.com/reference/android/view/View.html` `https://developer.android.com/reference/android/app/Activity.html#onCreatePanelView(int)(int featureId)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onCreateThumbnail(android.graphics.Bitmap, android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Bitmap.html outBitmap, https://developer.android.com/reference/android/graphics/Canvas.html canvas)`

**This method is deprecated.**
`https://developer.android.com/reference/android/view/View.html` `https://developer.android.com/reference/android/app/Activity.html#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)(

https://developer.android.com/reference/android/view/View.html parent,

https://developer.android.com/reference/java/lang/String.html name,

https://developer.android.com/reference/android/content/Context.html context,

https://developer.android.com/reference/android/util/AttributeSet.html attrs

)` `void` `https://developer.android.com/reference/android/app/Activity.html#onDestroy()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onDetachedFromWindow()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onEnterAnimationComplete()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` `void` `https://developer.android.com/reference/android/app/Activity.html#onGetDirectActions(android.os.CancellationSignal, java.util.function.Consumer&lt;java.util.List&lt;android.app.DirectAction&gt;&gt;)(

https://developer.android.com/reference/android/os/CancellationSignal.html cancellationSignal,

https://developer.android.com/reference/java/util/function/Consumer.html<https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/app/DirectAction.html>> callback

)` `https://developer.android.com/reference/android/app/HandoffActivityData.html` `https://developer.android.com/reference/android/app/Activity.html#onHandoffActivityDataRequested(android.app.HandoffActivityDataRequestInfo)(

https://developer.android.com/reference/android/app/HandoffActivityDataRequestInfo.html requestInfo

)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onKeyDown(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onKeyLongPress(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onKeyMultiple(int, int, android.view.KeyEvent)(int keyCode, int repeatCount, https://developer.android.com/reference/android/view/KeyEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onKeyShortcut(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onKeyUp(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` `void` `https://developer.android.com/reference/android/app/Activity.html#onLocalVoiceInteractionStarted()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onLocalVoiceInteractionStopped()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onLowMemory()()`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#onMenuItemSelected(int, android.view.MenuItem)(int featureId, https://developer.android.com/reference/android/view/MenuItem.html item)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onMenuOpened(int, android.view.Menu)(int featureId, https://developer.android.com/reference/android/view/Menu.html menu)` `void` `https://developer.android.com/reference/android/app/Activity.html#onMultiWindowModeChanged(boolean)(boolean isInMultiWindowMode)`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#onNavigateUp()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onNavigateUpFromChild(android.app.Activity)(https://developer.android.com/reference/android/app/Activity.html child)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html intent)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onOptionsItemSelected(android.view.MenuItem)(https://developer.android.com/reference/android/view/MenuItem.html item)` `void` `https://developer.android.com/reference/android/app/Activity.html#onOptionsMenuClosed(android.view.Menu)(https://developer.android.com/reference/android/view/Menu.html menu)` `void` `https://developer.android.com/reference/android/app/Activity.html#onPanelClosed(int, android.view.Menu)(int featureId, https://developer.android.com/reference/android/view/Menu.html menu)` `void` `https://developer.android.com/reference/android/app/Activity.html#onPause()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onPerformDirectAction(java.lang.String, android.os.Bundle, android.os.CancellationSignal, java.util.function.Consumer&lt;android.os.Bundle&gt;)(

https://developer.android.com/reference/java/lang/String.html actionId,

https://developer.android.com/reference/android/os/Bundle.html arguments,

https://developer.android.com/reference/android/os/CancellationSignal.html cancellationSignal,

https://developer.android.com/reference/java/util/function/Consumer.html<https://developer.android.com/reference/android/os/Bundle.html> resultListener

)` `void` `https://developer.android.com/reference/android/app/Activity.html#onPictureInPictureModeChanged(boolean)(boolean isInPictureInPictureMode)`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#onPictureInPictureRequested()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onPictureInPictureUiStateChanged(android.app.PictureInPictureUiState)(https://developer.android.com/reference/android/app/PictureInPictureUiState.html pipState)` `void` `https://developer.android.com/reference/android/app/Activity.html#onPostCreate(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html savedInstanceState)` `void` `https://developer.android.com/reference/android/app/Activity.html#onPostResume()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog)(int id, https://developer.android.com/reference/android/app/Dialog.html dialog)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)(https://developer.android.com/reference/android/app/TaskStackBuilder.html builder)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onPrepareOptionsMenu(android.view.Menu)(https://developer.android.com/reference/android/view/Menu.html menu)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onPreparePanel(int, android.view.View, android.view.Menu)(int featureId, https://developer.android.com/reference/android/view/View.html view, https://developer.android.com/reference/android/view/Menu.html menu)` `void` `https://developer.android.com/reference/android/app/Activity.html#onProvideAssistContent(android.app.assist.AssistContent)(https://developer.android.com/reference/android/app/assist/AssistContent.html outContent)` `void` `https://developer.android.com/reference/android/app/Activity.html#onProvideAssistData(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html data)` `void` `https://developer.android.com/reference/android/app/Activity.html#onProvideKeyboardShortcuts(java.util.List&lt;android.view.KeyboardShortcutGroup&gt;, android.view.Menu, int)(

https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/view/KeyboardShortcutGroup.html> data,

https://developer.android.com/reference/android/view/Menu.html menu,

int deviceId

)` `https://developer.android.com/reference/android/net/Uri.html` `https://developer.android.com/reference/android/app/Activity.html#onProvideReferrer()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onRequestPermissionsResult(int, java.lang.String[], int[])(

int requestCode,

String[] permissions,

int[] grantResults

)` `void` `https://developer.android.com/reference/android/app/Activity.html#onRestart()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html savedInstanceState)` `void` `https://developer.android.com/reference/android/app/Activity.html#onResume()()` `https://developer.android.com/reference/java/lang/Object.html` `https://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html outState)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onSearchRequested()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onStart()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onStateNotSaved()()`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onStop()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onTitleChanged(java.lang.CharSequence, int)(https://developer.android.com/reference/java/lang/CharSequence.html title, int color)` `void` `https://developer.android.com/reference/android/app/Activity.html#onTopResumedActivityChanged(boolean)(boolean isTopResumedActivity)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#onTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` `void` `https://developer.android.com/reference/android/app/Activity.html#onTrimMemory(int)(int level)` `void` `https://developer.android.com/reference/android/app/Activity.html#onUserInteraction()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()()` `void` `https://developer.android.com/reference/android/app/Activity.html#onVisibleBehindCanceled()()`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#onWindowAttributesChanged(android.view.WindowManager.LayoutParams)(https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html params)` `void` `https://developer.android.com/reference/android/app/Activity.html#onWindowFocusChanged(boolean)(boolean hasFocus)` `https://developer.android.com/reference/android/view/ActionMode.html` `https://developer.android.com/reference/android/app/Activity.html#onWindowStartingActionMode(android.view.ActionMode.Callback)(https://developer.android.com/reference/android/view/ActionMode.Callback.html callback)` `void` `https://developer.android.com/reference/android/app/Activity.html#openContextMenu(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` `void` `https://developer.android.com/reference/android/app/Activity.html#openOptionsMenu()()` `void` `https://developer.android.com/reference/android/app/Activity.html#overrideActivityTransition(int, int, int)(

int overrideType,

int enterAnim,

int exitAnim

)` `void` `https://developer.android.com/reference/android/app/Activity.html#overridePendingTransition(int, int)(int enterAnim, int exitAnim)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#postponeEnterTransition()()` `void` `https://developer.android.com/reference/android/app/Activity.html#recreate()()` `void` `https://developer.android.com/reference/android/app/Activity.html#registerActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks)(

https://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html callback

)` `void` `https://developer.android.com/reference/android/app/Activity.html#registerComponentCallbacks(android.content.ComponentCallbacks)(https://developer.android.com/reference/android/content/ComponentCallbacks.html callback)` `void` `https://developer.android.com/reference/android/app/Activity.html#registerForContextMenu(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` `void` `https://developer.android.com/reference/android/app/Activity.html#registerScreenCaptureCallback(java.util.concurrent.Executor, android.app.Activity.ScreenCaptureCallback)(

https://developer.android.com/reference/java/util/concurrent/Executor.html executor,

https://developer.android.com/reference/android/app/Activity.ScreenCaptureCallback.html callback

)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#releaseInstance()()` `final void` `https://developer.android.com/reference/android/app/Activity.html#removeDialog(int)(int id)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#reportFullyDrawn()()` `https://developer.android.com/reference/android/view/DragAndDropPermissions.html` `https://developer.android.com/reference/android/app/Activity.html#requestDragAndDropPermissions(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent.html event)` `void` `https://developer.android.com/reference/android/app/Activity.html#requestFullscreenMode(int, android.os.OutcomeReceiver&lt;java.lang.Void,java.lang.Throwable&gt;)(

int request,

https://developer.android.com/reference/android/os/OutcomeReceiver.html<https://developer.android.com/reference/java/lang/Void.html, https://developer.android.com/reference/java/lang/Throwable.html> approvalCallback

)` `final void` `https://developer.android.com/reference/android/app/Activity.html#requestOpenInBrowserEducation()()` `final void` `https://developer.android.com/reference/android/app/Activity.html#requestPermissions(java.lang.String[], int)(String[] permissions, int requestCode)` `final void` `https://developer.android.com/reference/android/app/Activity.html#requestShowKeyboardShortcuts()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#requestVisibleBehind(boolean)(boolean visible)`

**This method is deprecated.**
`final boolean` `https://developer.android.com/reference/android/app/Activity.html#requestWindowFeature(int)(int featureId)` `final T` `<T extends https://developer.android.com/reference/android/view/View.html> https://developer.android.com/reference/android/app/Activity.html#requireViewById(int)(int id)` `final void` `https://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable.html action)` `void` `https://developer.android.com/reference/android/app/Activity.html#setActionBar(android.widget.Toolbar)(https://developer.android.com/reference/android/widget/Toolbar.html toolbar)` `void` `https://developer.android.com/reference/android/app/Activity.html#setAllowCrossUidActivitySwitchFromBelow(boolean)(boolean allowed)` `void` `https://developer.android.com/reference/android/app/Activity.html#setContentTransitionManager(android.transition.TransitionManager)(https://developer.android.com/reference/android/transition/TransitionManager.html tm)` `void` `https://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)(int mode)` `void` `https://developer.android.com/reference/android/app/Activity.html#setEnterSharedElementCallback(android.app.SharedElementCallback)(https://developer.android.com/reference/android/app/SharedElementCallback.html callback)` `void` `https://developer.android.com/reference/android/app/Activity.html#setExitSharedElementCallback(android.app.SharedElementCallback)(https://developer.android.com/reference/android/app/SharedElementCallback.html callback)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setFeatureDrawable(int, android.graphics.drawable.Drawable)(int featureId, https://developer.android.com/reference/android/graphics/drawable/Drawable.html drawable)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setFeatureDrawableAlpha(int, int)(int featureId, int alpha)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setFeatureDrawableResource(int, int)(int featureId, int resId)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setFeatureDrawableUri(int, android.net.Uri)(int featureId, https://developer.android.com/reference/android/net/Uri.html uri)` `void` `https://developer.android.com/reference/android/app/Activity.html#setFinishOnTouchOutside(boolean)(boolean finish)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setHandoffEnabled(boolean, android.app.HandoffActivityParams)(

boolean handoffEnabled,

https://developer.android.com/reference/android/app/HandoffActivityParams.html handoffActivityParams

)` `void` `https://developer.android.com/reference/android/app/Activity.html#setImmersive(boolean)(boolean i)` `void` `https://developer.android.com/reference/android/app/Activity.html#setInheritShowWhenLocked(boolean)(boolean inheritShowWhenLocked)` `void` `https://developer.android.com/reference/android/app/Activity.html#setIntent(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html newIntent)` `void` `https://developer.android.com/reference/android/app/Activity.html#setLocusContext(android.content.LocusId, android.os.Bundle)(https://developer.android.com/reference/android/content/LocusId.html locusId, https://developer.android.com/reference/android/os/Bundle.html bundle)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setMediaController(android.media.session.MediaController)(https://developer.android.com/reference/android/media/session/MediaController.html controller)` `void` `https://developer.android.com/reference/android/app/Activity.html#setPictureInPictureParams(android.app.PictureInPictureParams)(https://developer.android.com/reference/android/app/PictureInPictureParams.html params)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setProgress(int)(int progress)`

**This method is deprecated.**
`final void` `https://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate(boolean)(boolean indeterminate)`

**This method is deprecated.**
`final void` `https://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminateVisibility(boolean)(boolean visible)`

**This method is deprecated.**
`final void` `https://developer.android.com/reference/android/app/Activity.html#setProgressBarVisibility(boolean)(boolean visible)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#setRecentsScreenshotEnabled(boolean)(boolean enabled)` `void` `https://developer.android.com/reference/android/app/Activity.html#setRequestedOrientation(int)(int requestedOrientation)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setResult(int)(int resultCode)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setSecondaryProgress(int)(int secondaryProgress)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#setShouldDockBigOverlays(boolean)(boolean shouldDockBigOverlays)` `void` `https://developer.android.com/reference/android/app/Activity.html#setShowWhenLocked(boolean)(boolean showWhenLocked)` `void` `https://developer.android.com/reference/android/app/Activity.html#setTaskDescription(android.app.ActivityManager.TaskDescription)(https://developer.android.com/reference/android/app/ActivityManager.TaskDescription.html taskDescription)` `void` `https://developer.android.com/reference/android/app/Activity.html#setTheme(int)(int resid)` `void` `https://developer.android.com/reference/android/app/Activity.html#setTitle(int)(int titleId)` `void` `https://developer.android.com/reference/android/app/Activity.html#setTitleColor(int)(int textColor)`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#setTranslucent(boolean)(boolean translucent)` `void` `https://developer.android.com/reference/android/app/Activity.html#setTurnScreenOn(boolean)(boolean turnScreenOn)` `void` `https://developer.android.com/reference/android/app/Activity.html#setVisible(boolean)(boolean visible)` `final void` `https://developer.android.com/reference/android/app/Activity.html#setVolumeControlStream(int)(int streamType)` `void` `https://developer.android.com/reference/android/app/Activity.html#setVrModeEnabled(boolean, android.content.ComponentName)(boolean enabled, https://developer.android.com/reference/android/content/ComponentName.html requestedComponent)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#shouldDockBigOverlays()()` `boolean` `https://developer.android.com/reference/android/app/Activity.html#shouldShowRequestPermissionRationale(java.lang.String)(https://developer.android.com/reference/java/lang/String.html permission)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#shouldUpRecreateTask(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html targetIntent)` `boolean` `https://developer.android.com/reference/android/app/Activity.html#showAssist(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html args)` `final void` `https://developer.android.com/reference/android/app/Activity.html#showDialog(int)(int id)`

**This method is deprecated.**
`final boolean` `https://developer.android.com/reference/android/app/Activity.html#showDialog(int, android.os.Bundle)(int id, https://developer.android.com/reference/android/os/Bundle.html args)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#showLockTaskEscapeMessage()()` `https://developer.android.com/reference/android/view/ActionMode.html` `https://developer.android.com/reference/android/app/Activity.html#startActionMode(android.view.ActionMode.Callback)(https://developer.android.com/reference/android/view/ActionMode.Callback.html callback)` `void` `https://developer.android.com/reference/android/app/Activity.html#startActivities(android.content.Intent[])(Intent[] intents)` `void` `https://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html intent)` `void` `https://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)(https://developer.android.com/reference/android/content/Intent.html intent, int requestCode)` `void` `https://developer.android.com/reference/android/app/Activity.html#startActivityFromChild(android.app.Activity, android.content.Intent, int)(https://developer.android.com/reference/android/app/Activity.html child, https://developer.android.com/reference/android/content/Intent.html intent, int requestCode)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#startActivityFromFragment(android.app.Fragment, android.content.Intent, int)(

https://developer.android.com/reference/android/app/Fragment.html fragment,

https://developer.android.com/reference/android/content/Intent.html intent,

int requestCode

)`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#startActivityIfNeeded(android.content.Intent, int)(https://developer.android.com/reference/android/content/Intent.html intent, int requestCode)` `void` `https://developer.android.com/reference/android/app/Activity.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int)(

https://developer.android.com/reference/android/content/IntentSender.html intent,

https://developer.android.com/reference/android/content/Intent.html fillInIntent,

int flagsMask,

int flagsValues,

int extraFlags

)` `void` `https://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)(

https://developer.android.com/reference/android/content/IntentSender.html intent,

int requestCode,

https://developer.android.com/reference/android/content/Intent.html fillInIntent,

int flagsMask,

int flagsValues,

int extraFlags

)` `void` `https://developer.android.com/reference/android/app/Activity.html#startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int)(

https://developer.android.com/reference/android/app/Activity.html child,

https://developer.android.com/reference/android/content/IntentSender.html intent,

int requestCode,

https://developer.android.com/reference/android/content/Intent.html fillInIntent,

int flagsMask,

int flagsValues,

int extraFlags

)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#startLocalVoiceInteraction(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html privateOptions)` `void` `https://developer.android.com/reference/android/app/Activity.html#startLockTask()()` `void` `https://developer.android.com/reference/android/app/Activity.html#startManagingCursor(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor.html c)`

**This method is deprecated.**
`boolean` `https://developer.android.com/reference/android/app/Activity.html#startNextMatchingActivity(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html intent)` `void` `https://developer.android.com/reference/android/app/Activity.html#startPostponedEnterTransition()()` `void` `https://developer.android.com/reference/android/app/Activity.html#startSearch(java.lang.String, boolean, android.os.Bundle, boolean)(

https://developer.android.com/reference/java/lang/String.html initialQuery,

boolean selectInitialQuery,

https://developer.android.com/reference/android/os/Bundle.html appSearchData,

boolean globalSearch

)` `void` `https://developer.android.com/reference/android/app/Activity.html#stopLocalVoiceInteraction()()` `void` `https://developer.android.com/reference/android/app/Activity.html#stopLockTask()()` `void` `https://developer.android.com/reference/android/app/Activity.html#stopManagingCursor(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor.html c)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/app/Activity.html#takeKeyEvents(boolean)(boolean get)` `void` `https://developer.android.com/reference/android/app/Activity.html#triggerSearch(java.lang.String, android.os.Bundle)(https://developer.android.com/reference/java/lang/String.html query, https://developer.android.com/reference/android/os/Bundle.html appSearchData)` `void` `https://developer.android.com/reference/android/app/Activity.html#unregisterActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks)(

https://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html callback

)` `void` `https://developer.android.com/reference/android/app/Activity.html#unregisterComponentCallbacks(android.content.ComponentCallbacks)(https://developer.android.com/reference/android/content/ComponentCallbacks.html callback)` `void` `https://developer.android.com/reference/android/app/Activity.html#unregisterForContextMenu(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` `void` `https://developer.android.com/reference/android/app/Activity.html#unregisterScreenCaptureCallback(android.app.Activity.ScreenCaptureCallback)(

https://developer.android.com/reference/android/app/Activity.ScreenCaptureCallback.html callback

)` From [android.content.Context](https://developer.android.com/reference/android/content/Context.html) `final int` `https://developer.android.com/reference/android/content/Context.html#getColor(int)(int id)` `final https://developer.android.com/reference/android/content/res/ColorStateList.html` `https://developer.android.com/reference/android/content/Context.html#getColorStateList(int)(int id)` `final https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `https://developer.android.com/reference/android/content/Context.html#getDrawable(int)(int id)` `final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#getString(int)(int resId)` `final T` `<T> https://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.Class&lt;T&gt;)(https://developer.android.com/reference/java/lang/Class.html<T> serviceClass)` `final https://developer.android.com/reference/java/lang/CharSequence.html` `https://developer.android.com/reference/android/content/Context.html#getText(int)(int resId)` `https://developer.android.com/reference/android/content/Context.BindServiceFlags.html` `https://developer.android.com/reference/android/content/Context.html#getUpdateableFlags()()` `final https://developer.android.com/reference/android/content/res/TypedArray.html` `https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, int[])(https://developer.android.com/reference/android/util/AttributeSet.html set, int[] attrs)` `void` `https://developer.android.com/reference/android/content/Context.html#revokeSelfPermissionOnKill(java.lang.String)(https://developer.android.com/reference/java/lang/String.html permName)` `void` `https://developer.android.com/reference/android/content/Context.html#sendBroadcastWithMultiplePermissions(android.content.Intent, java.lang.String[])(

https://developer.android.com/reference/android/content/Intent.html intent,

String[] receiverPermissions

)` From [android.view.ContextThemeWrapper](https://developer.android.com/reference/android/view/ContextThemeWrapper.html) `void` `https://developer.android.com/reference/android/view/ContextThemeWrapper.html#applyOverrideConfiguration(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration.html overrideConfiguration)` `https://developer.android.com/reference/android/content/res/AssetManager.html` `https://developer.android.com/reference/android/view/ContextThemeWrapper.html#getAssets()()` `https://developer.android.com/reference/android/content/res/Resources.html` `https://developer.android.com/reference/android/view/ContextThemeWrapper.html#getResources()()` `https://developer.android.com/reference/android/content/res/Resources.Theme.html` `https://developer.android.com/reference/android/view/ContextThemeWrapper.html#getTheme()()` From [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindIsolatedService(android.content.Intent, int, java.lang.String, java.util.concurrent.Executor, android.content.ServiceConnection)(

https://developer.android.com/reference/android/content/Intent.html service,

int flags,

https://developer.android.com/reference/java/lang/String.html instanceName,

https://developer.android.com/reference/java/util/concurrent/Executor.html executor,

https://developer.android.com/reference/android/content/ServiceConnection.html conn

)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.Context.BindServiceFlags, java.util.concurrent.Executor, android.content.ServiceConnection)(

https://developer.android.com/reference/android/content/Intent.html service,

https://developer.android.com/reference/android/content/Context.BindServiceFlags.html flags,

https://developer.android.com/reference/java/util/concurrent/Executor.html executor,

https://developer.android.com/reference/android/content/ServiceConnection.html conn

)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, android.content.Context.BindServiceFlags, android.os.UserHandle)(

https://developer.android.com/reference/android/content/Intent.html service,

https://developer.android.com/reference/android/content/ServiceConnection.html conn,

https://developer.android.com/reference/android/content/Context.BindServiceFlags.html flags,

https://developer.android.com/reference/android/os/UserHandle.html user

)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfPermission(java.lang.String)(https://developer.android.com/reference/java/lang/String.html permission)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermission(android.net.Uri, int)(https://developer.android.com/reference/android/net/Uri.html uri, int modeFlags)` `int[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermissions(java.util.List&lt;android.net.Uri&gt;, int)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/net/Uri.html> uris, int modeFlags)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission(java.lang.String)(https://developer.android.com/reference/java/lang/String.html permission)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermission(android.net.Uri, int)(https://developer.android.com/reference/android/net/Uri.html uri, int modeFlags)` `int[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermissions(java.util.List&lt;android.net.Uri&gt;, int)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/net/Uri.html> uris, int modeFlags)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkContentUriPermissionFull(android.net.Uri, int, int, int)(https://developer.android.com/reference/android/net/Uri.html uri, int pid, int uid, int modeFlags)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkPermission(java.lang.String, int, int)(https://developer.android.com/reference/java/lang/String.html permission, int pid, int uid)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkSelfPermission(java.lang.String)(https://developer.android.com/reference/java/lang/String.html permission)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, int, int, int)(https://developer.android.com/reference/android/net/Uri.html uri, int pid, int uid, int modeFlags)` `int[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermissions(java.util.List&lt;android.net.Uri&gt;, int, int, int)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/net/Uri.html> uris, int pid, int uid, int modeFlags)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#clearWallpaper()()`

**This method is deprecated.**
`https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createAttributionContext(java.lang.String)(https://developer.android.com/reference/java/lang/String.html attributionTag)` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createConfigurationContext(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration.html overrideConfiguration)` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createContext(android.content.ContextParams)(https://developer.android.com/reference/android/content/ContextParams.html contextParams)` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createContextForSplit(java.lang.String)(https://developer.android.com/reference/java/lang/String.html splitName)` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceContext(int)(int deviceId)` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceProtectedStorageContext()()` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createDisplayContext(android.view.Display)(https://developer.android.com/reference/android/view/Display.html display)` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createPackageContext(java.lang.String, int)(https://developer.android.com/reference/java/lang/String.html packageName, int flags)` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createWindowContext(android.view.Display, int, android.os.Bundle)(https://developer.android.com/reference/android/view/Display.html display, int type, https://developer.android.com/reference/android/os/Bundle.html options)` `String[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#databaseList()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#deleteFile(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#deleteSharedPreferences(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfPermission(java.lang.String, java.lang.String)(https://developer.android.com/reference/java/lang/String.html permission, https://developer.android.com/reference/java/lang/String.html message)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.String)(

https://developer.android.com/reference/android/net/Uri.html uri,

int modeFlags,

https://developer.android.com/reference/java/lang/String.html message

)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingPermission(java.lang.String, java.lang.String)(https://developer.android.com/reference/java/lang/String.html permission, https://developer.android.com/reference/java/lang/String.html message)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingUriPermission(android.net.Uri, int, java.lang.String)(https://developer.android.com/reference/android/net/Uri.html uri, int modeFlags, https://developer.android.com/reference/java/lang/String.html message)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforcePermission(java.lang.String, int, int, java.lang.String)(https://developer.android.com/reference/java/lang/String.html permission, int pid, int uid, https://developer.android.com/reference/java/lang/String.html message)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, int, int, int, java.lang.String)(

https://developer.android.com/reference/android/net/Uri.html uri,

int pid,

int uid,

int modeFlags,

https://developer.android.com/reference/java/lang/String.html message

)` `String[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#fileList()()` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationContext()()` `https://developer.android.com/reference/android/content/pm/ApplicationInfo.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationInfo()()` `https://developer.android.com/reference/android/content/AttributionSource.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getAttributionSource()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getAttributionTag()()` `https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getBaseContext()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getCacheDir()()` `https://developer.android.com/reference/java/lang/ClassLoader.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getClassLoader()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getCodeCacheDir()()` `https://developer.android.com/reference/android/content/ContentResolver.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getContentResolver()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDataDir()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDatabasePath(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDeviceId()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDir(java.lang.String, int)(https://developer.android.com/reference/java/lang/String.html name, int mode)` `https://developer.android.com/reference/android/view/Display.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDisplay()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalCacheDir()()` `File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalCacheDirs()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDir(java.lang.String)(https://developer.android.com/reference/java/lang/String.html type)` `File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDirs(java.lang.String)(https://developer.android.com/reference/java/lang/String.html type)` `File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalMediaDirs()()`

**This method is deprecated.**
`https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getFileStreamPath(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getFilesDir()()` `https://developer.android.com/reference/java/util/concurrent/Executor.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getMainExecutor()()` `https://developer.android.com/reference/android/os/Looper.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getMainLooper()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getNoBackupFilesDir()()` `https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getObbDir()()` `File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getObbDirs()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getOpPackageName()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageCodePath()()` `https://developer.android.com/reference/android/content/pm/PackageManager.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageManager()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageName()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageResourcePath()()` `https://developer.android.com/reference/android/content/ContextParams.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getParams()()` `https://developer.android.com/reference/android/content/SharedPreferences.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getSharedPreferences(java.lang.String, int)(https://developer.android.com/reference/java/lang/String.html name, int mode)` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getSystemServiceName(java.lang.Class&lt;?&gt;)(https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?> serviceClass)` `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaper()()`

**This method is deprecated.**
`int` `https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumHeight()()`

**This method is deprecated.**
`int` `https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumWidth()()`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#grantUriPermission(java.lang.String, android.net.Uri, int)(https://developer.android.com/reference/java/lang/String.html toPackage, https://developer.android.com/reference/android/net/Uri.html uri, int modeFlags)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#isDeviceProtectedStorage()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#isRestricted()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#isUiContext()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#moveDatabaseFrom(android.content.Context, java.lang.String)(https://developer.android.com/reference/android/content/Context.html sourceContext, https://developer.android.com/reference/java/lang/String.html name)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#moveSharedPreferencesFrom(android.content.Context, java.lang.String)(https://developer.android.com/reference/android/content/Context.html sourceContext, https://developer.android.com/reference/java/lang/String.html name)` `https://developer.android.com/reference/java/io/FileInputStream.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#openFileInput(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` `https://developer.android.com/reference/java/io/FileOutputStream.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#openFileOutput(java.lang.String, int)(https://developer.android.com/reference/java/lang/String.html name, int mode)` `https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory)(

https://developer.android.com/reference/java/lang/String.html name,

int mode,

https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html factory

)` `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#peekWallpaper()()`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#rebindService(android.content.ServiceConnection, android.content.Context.BindServiceFlags)(https://developer.android.com/reference/android/content/ServiceConnection.html conn, https://developer.android.com/reference/android/content/Context.BindServiceFlags.html flags)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerDeviceIdChangeListener(java.util.concurrent.Executor, java.util.function.IntConsumer)(https://developer.android.com/reference/java/util/concurrent/Executor.html executor, https://developer.android.com/reference/java/util/function/IntConsumer.html listener)` `https://developer.android.com/reference/android/content/Intent.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter)(https://developer.android.com/reference/android/content/BroadcastReceiver.html receiver, https://developer.android.com/reference/android/content/IntentFilter.html filter)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcast(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html intent)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)(https://developer.android.com/reference/android/content/Intent.html intent, https://developer.android.com/reference/android/os/UserHandle.html user)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#revokeSelfPermissionsOnKill(java.util.Collection&lt;java.lang.String&gt;)(https://developer.android.com/reference/java/util/Collection.html<https://developer.android.com/reference/java/lang/String.html> permissions)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#revokeUriPermission(android.net.Uri, int)(https://developer.android.com/reference/android/net/Uri.html uri, int modeFlags)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html intent)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle)(https://developer.android.com/reference/android/content/Intent.html intent, https://developer.android.com/reference/android/os/UserHandle.html user)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, int, java.lang.String, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, java.lang.String, android.os.Bundle, android.os.Bundle)(

https://developer.android.com/reference/android/content/Intent.html intent,

int initialCode,

https://developer.android.com/reference/java/lang/String.html receiverPermission,

https://developer.android.com/reference/java/lang/String.html receiverAppOp,

https://developer.android.com/reference/android/content/BroadcastReceiver.html resultReceiver,

https://developer.android.com/reference/android/os/Handler.html scheduler,

https://developer.android.com/reference/java/lang/String.html initialData,

https://developer.android.com/reference/android/os/Bundle.html initialExtras,

https://developer.android.com/reference/android/os/Bundle.html options

)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)(

https://developer.android.com/reference/android/content/Intent.html intent,

https://developer.android.com/reference/android/os/UserHandle.html user,

https://developer.android.com/reference/java/lang/String.html receiverPermission,

https://developer.android.com/reference/android/content/BroadcastReceiver.html resultReceiver,

https://developer.android.com/reference/android/os/Handler.html scheduler,

int initialCode,

https://developer.android.com/reference/java/lang/String.html initialData,

https://developer.android.com/reference/android/os/Bundle.html initialExtras

)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcast(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html intent)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)(https://developer.android.com/reference/android/content/Intent.html intent, https://developer.android.com/reference/android/os/UserHandle.html user)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)(

https://developer.android.com/reference/android/content/Intent.html intent,

https://developer.android.com/reference/android/content/BroadcastReceiver.html resultReceiver,

https://developer.android.com/reference/android/os/Handler.html scheduler,

int initialCode,

https://developer.android.com/reference/java/lang/String.html initialData,

https://developer.android.com/reference/android/os/Bundle.html initialExtras

)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)(

https://developer.android.com/reference/android/content/Intent.html intent,

https://developer.android.com/reference/android/os/UserHandle.html user,

https://developer.android.com/reference/android/content/BroadcastReceiver.html resultReceiver,

https://developer.android.com/reference/android/os/Handler.html scheduler,

int initialCode,

https://developer.android.com/reference/java/lang/String.html initialData,

https://developer.android.com/reference/android/os/Bundle.html initialExtras

)`

**This method is deprecated.**
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(android.graphics.Bitmap)(https://developer.android.com/reference/android/graphics/Bitmap.html bitmap)`

**This method is deprecated.**
`https://developer.android.com/reference/android/content/ComponentName.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#startForegroundService(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html service)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#startInstrumentation(android.content.ComponentName, java.lang.String, android.os.Bundle)(

https://developer.android.com/reference/android/content/ComponentName.html className,

https://developer.android.com/reference/java/lang/String.html profileFile,

https://developer.android.com/reference/android/os/Bundle.html arguments

)` `https://developer.android.com/reference/android/content/ComponentName.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#startService(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html service)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#stopService(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html name)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#unbindService(android.content.ServiceConnection)(https://developer.android.com/reference/android/content/ServiceConnection.html conn)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterDeviceIdChangeListener(java.util.function.IntConsumer)(https://developer.android.com/reference/java/util/function/IntConsumer.html listener)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterReceiver(android.content.BroadcastReceiver)(https://developer.android.com/reference/android/content/BroadcastReceiver.html receiver)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceBindings(java.util.Collection&lt;android.content.Context.UpdateBindingParams&gt;)(https://developer.android.com/reference/java/util/Collection.html<https://developer.android.com/reference/android/content/Context.UpdateBindingParams.html> params)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceGroup(android.content.ServiceConnection, int, int)(https://developer.android.com/reference/android/content/ServiceConnection.html conn, int group, int importance)` From [android.view.Window.Callback](https://developer.android.com/reference/android/view/Window.Callback.html) `void` `https://developer.android.com/reference/android/view/Window.Callback.html#onPointerCaptureChanged(boolean)(boolean hasCapture)`

## Constants

### EXTRA_ANIMATION_DURATION_MILLIS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public static final String EXTRA_ANIMATION_DURATION_MILLIS = "androidx.wear.activity.extra.ANIMATION_DURATION_MILLIS"
```

The lookup key for an optional int that defines the duration in milliseconds that the confirmation activity should be displayed. If no value is specified it will default to `https://developer.android.com/reference/androidx/wear/widget/ConfirmationOverlay#DEFAULT_ANIMATION_DURATION_MS()`

### EXTRA_ANIMATION_TYPE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public static final String EXTRA_ANIMATION_TYPE = "androidx.wear.activity.extra.ANIMATION_TYPE"
```

The lookup key for an optional int that defines the animation type that should be displayed. Should be one of `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#SUCCESS_ANIMATION()`, `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#OPEN_ON_PHONE_ANIMATION()`, or `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#FAILURE_ANIMATION()`

If no value is specified it will default to `https://developer.android.com/reference/androidx/wear/activity/ConfirmationActivity#SUCCESS_ANIMATION()`

### EXTRA_MESSAGE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public static final String EXTRA_MESSAGE = "androidx.wear.activity.extra.MESSAGE"
```

Used as a string extra field on an intent for this activity to define the message that should be displayed to the user while the activity is visible.

### FAILURE_ANIMATION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public static final int FAILURE_ANIMATION = 3
```

### OPEN_ON_PHONE_ANIMATION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public static final int OPEN_ON_PHONE_ANIMATION = 2
```

### SUCCESS_ANIMATION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public static final int SUCCESS_ANIMATION = 1
```

## Public constructors

### ConfirmationActivity

Added in 1.1.0

```
public ConfirmationActivity()
```

## Public methods

### onCreate

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public void onCreate(Bundle savedInstanceState)
```

## Protected methods

### onAnimationFinished

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
protected void onAnimationFinished()
```

Override this method if you wish to provide different than out-of-the-box behavior when the confirmation animation finishes. By default this method will finish the ConfirmationActivity.