[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  
Summary:[Inherited Constants](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#inhconstants)\|[Ctors](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#pubctors)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#inhmethods)  

# IsolatedService

`
public


abstract
class
IsolatedService
`  
`


``


``


``

extends `[Service](https://developer.android.com/reference/android/app/Service)`


``


`

|---|---|---|---|------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||||
| ↳ | [android.content.Context](https://developer.android.com/reference/android/content/Context) ||||
|   | ↳ | [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper) |||
|   |   | ↳ | [android.app.Service](https://developer.android.com/reference/android/app/Service) ||
|   |   |   | ↳ | android.adservices.ondevicepersonalization.IsolatedService |

<br />

*** ** * ** ***

Base class for services that are started by ODP on a call to`OnDevicePersonalizationManager#execute(ComponentName, PersistableBundle,
java.util.concurrent.Executor, OutcomeReceiver)`and run in an[isolated process](https://developer.android.com/guide/topics/manifest/service-element#isolated). The service can produce content to be displayed in a[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView)in a calling app and write persistent results to on-device storage, which can be consumed by Federated Analytics for cross-device statistical analysis or by Federated Learning for model training. Client apps use[OnDevicePersonalizationManager](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/OnDevicePersonalizationManager)to interact with an[IsolatedService](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.app.Service](https://developer.android.com/reference/android/app/Service) |-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [START_CONTINUATION_MASK](https://developer.android.com/reference/android/app/Service#START_CONTINUATION_MASK) Bits returned by[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))describing how to continue the service if it is killed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | `int` | [START_FLAG_REDELIVERY](https://developer.android.com/reference/android/app/Service#START_FLAG_REDELIVERY) This flag is set in[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))if the Intent is a re-delivery of a previously delivered intent, because the service had previously returned[START_REDELIVER_INTENT](https://developer.android.com/reference/android/app/Service#START_REDELIVER_INTENT)but had been killed before calling[stopSelf(int)](https://developer.android.com/reference/android/app/Service#stopSelf(int))for that Intent.                                                                                                                                                        | | `int` | [START_FLAG_RETRY](https://developer.android.com/reference/android/app/Service#START_FLAG_RETRY) This flag is set in[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))if the Intent is a retry because the original attempt never got to or returned from[onStartCommand(android.content.Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int)).                                                                                                                                                                                                                                                                              | | `int` | [START_NOT_STICKY](https://developer.android.com/reference/android/app/Service#START_NOT_STICKY) Constant to return from[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int)): if this service's process is killed while it is started (after returning from[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))), and there are no new start intents to deliver to it, then take the service out of the started state and don't recreate until a future explicit call to[Context.startService(Intent)](https://developer.android.com/reference/android/content/Context#startService(android.content.Intent)). | | `int` | [START_REDELIVER_INTENT](https://developer.android.com/reference/android/app/Service#START_REDELIVER_INTENT) Constant to return from[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int)): if this service's process is killed while it is started (after returning from[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))), then it will be scheduled for a restart and the last delivered Intent re-delivered to it again via[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int)).                         | | `int` | [START_STICKY](https://developer.android.com/reference/android/app/Service#START_STICKY) Constant to return from[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int)): if this service's process is killed while it is started (after returning from[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))), then leave it in the started state but don't retain this delivered intent.                                                                                                                                                                                                                          | | `int` | [START_STICKY_COMPATIBILITY](https://developer.android.com/reference/android/app/Service#START_STICKY_COMPATIBILITY) Constant to return from[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int)): compatibility version of[START_STICKY](https://developer.android.com/reference/android/app/Service#START_STICKY)that does not guarantee that[onStartCommand(Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))will be called again after being killed.                                                                                                                                                                    | | `int` | [STOP_FOREGROUND_DETACH](https://developer.android.com/reference/android/app/Service#STOP_FOREGROUND_DETACH) Selector for[stopForeground(int)](https://developer.android.com/reference/android/app/Service#stopForeground(int)): if set, the notification previously supplied to[startForeground(int, Notification)](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))will be detached from the service's lifecycle.                                                                                                                                                                                                                                                                                                                              | | `int` | [STOP_FOREGROUND_LEGACY](https://developer.android.com/reference/android/app/Service#STOP_FOREGROUND_LEGACY) *This constant was deprecated in API level 33. Use[STOP_FOREGROUND_DETACH](https://developer.android.com/reference/android/app/Service#STOP_FOREGROUND_DETACH)instead. The legacy behavior was inconsistent, leading to bugs around unpredictable results.*                                                                                                                                                                                                                                                                                                                                                                                                                                      | | `int` | [STOP_FOREGROUND_REMOVE](https://developer.android.com/reference/android/app/Service#STOP_FOREGROUND_REMOVE) Selector for[stopForeground(int)](https://developer.android.com/reference/android/app/Service#stopForeground(int)): if supplied, the notification previously supplied to[startForeground(int, Notification)](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))will be cancelled and removed from display.                                                                                                                                                                                                                                                                                                                            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| From class[android.content.Context](https://developer.android.com/reference/android/content/Context) |--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [ACCESSIBILITY_SERVICE](https://developer.android.com/reference/android/content/Context#ACCESSIBILITY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[AccessibilityManager](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager)for giving the user feedback for UI events through the registered event listeners.                                                                                                                                                                                                                                                                                              | | [String](https://developer.android.com/reference/java/lang/String) | [ACCOUNT_SERVICE](https://developer.android.com/reference/android/content/Context#ACCOUNT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[AccountManager](https://developer.android.com/reference/android/accounts/AccountManager)for receiving intents at a time of your choosing.                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://developer.android.com/reference/java/lang/String) | [ACTIVITY_SERVICE](https://developer.android.com/reference/android/content/Context#ACTIVITY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[ActivityManager](https://developer.android.com/reference/android/app/ActivityManager)for interacting with the global system state.                                                                                                                                                                                                                                                                                                                                                                      | | [String](https://developer.android.com/reference/java/lang/String) | [ALARM_SERVICE](https://developer.android.com/reference/android/content/Context#ALARM_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[AlarmManager](https://developer.android.com/reference/android/app/AlarmManager)for receiving intents at a time of your choosing.                                                                                                                                                                                                                                                                                                                                                                              | | [String](https://developer.android.com/reference/java/lang/String) | [APPWIDGET_SERVICE](https://developer.android.com/reference/android/content/Context#APPWIDGET_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[AppWidgetManager](https://developer.android.com/reference/android/appwidget/AppWidgetManager)for accessing AppWidgets.                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://developer.android.com/reference/java/lang/String) | [APP_OPS_SERVICE](https://developer.android.com/reference/android/content/Context#APP_OPS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[AppOpsManager](https://developer.android.com/reference/android/app/AppOpsManager)for tracking application operations on the device.                                                                                                                                                                                                                                                                                                                                                                       | | [String](https://developer.android.com/reference/java/lang/String) | [APP_SEARCH_SERVICE](https://developer.android.com/reference/android/content/Context#APP_SEARCH_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve an[AppSearchManager](https://developer.android.com/reference/android/app/appsearch/AppSearchManager)for indexing and querying app data managed by the system.                                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [AUDIO_SERVICE](https://developer.android.com/reference/android/content/Context#AUDIO_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[AudioManager](https://developer.android.com/reference/android/media/AudioManager)for handling management of volume, ringer modes and audio routing.                                                                                                                                                                                                                                                                                                                                                           | | [String](https://developer.android.com/reference/java/lang/String) | [BATTERY_SERVICE](https://developer.android.com/reference/android/content/Context#BATTERY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[BatteryManager](https://developer.android.com/reference/android/os/BatteryManager)for managing battery state.                                                                                                                                                                                                                                                                                                                                                                                             | | `int`                                                              | [BIND_ABOVE_CLIENT](https://developer.android.com/reference/android/content/Context#BIND_ABOVE_CLIENT) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): indicates that the client application binding to this service considers the service to be more important than the app itself.                                                                                                                                                                                                                                  | | `int`                                                              | [BIND_ADJUST_WITH_ACTIVITY](https://developer.android.com/reference/android/content/Context#BIND_ADJUST_WITH_ACTIVITY) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): If binding from an activity, allow the target service's process importance to be raised based on whether the activity is visible to the user, regardless whether another flag is used to reduce the amount that the client process's overall importance is used to impact it.                                                                  | | `int`                                                              | [BIND_ALLOW_ACTIVITY_STARTS](https://developer.android.com/reference/android/content/Context#BIND_ALLOW_ACTIVITY_STARTS) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): If binding from an app that is visible, the bound service is allowed to start an activity from background.                                                                                                                                                                                                                                   | | `int`                                                              | [BIND_ALLOW_OOM_MANAGEMENT](https://developer.android.com/reference/android/content/Context#BIND_ALLOW_OOM_MANAGEMENT) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): allow the process hosting the bound service to go through its normal memory management.                                                                                                                                                                                                                                                        | | `int`                                                              | [BIND_AUTO_CREATE](https://developer.android.com/reference/android/content/Context#BIND_AUTO_CREATE) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): automatically create the service as long as the binding exists.                                                                                                                                                                                                                                                                                                  | | `int`                                                              | [BIND_DEBUG_UNBIND](https://developer.android.com/reference/android/content/Context#BIND_DEBUG_UNBIND) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): include debugging help for mismatched calls to unbind.                                                                                                                                                                                                                                                                                                         | | `int`                                                              | [BIND_EXTERNAL_SERVICE](https://developer.android.com/reference/android/content/Context#BIND_EXTERNAL_SERVICE) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): The service being bound is an[isolated](https://developer.android.com/reference/android/R.attr#isolatedProcess),[external](https://developer.android.com/reference/android/R.attr#externalService)service.                                                                                                                                             | | `long`                                                             | [BIND_EXTERNAL_SERVICE_LONG](https://developer.android.com/reference/android/content/Context#BIND_EXTERNAL_SERVICE_LONG) Works in the same way as[BIND_EXTERNAL_SERVICE](https://developer.android.com/reference/android/content/Context#BIND_EXTERNAL_SERVICE), but it's defined as a (@code long) value that is compatible to[BindServiceFlags](https://developer.android.com/reference/android/content/Context.BindServiceFlags).                                                                                                                                                                                                                                                                                                                                       | | `int`                                                              | [BIND_IMPORTANT](https://developer.android.com/reference/android/content/Context#BIND_IMPORTANT) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): this service is very important to the client, so should be brought to the foreground process level when the client is.                                                                                                                                                                                                                                               | | `int`                                                              | [BIND_INCLUDE_CAPABILITIES](https://developer.android.com/reference/android/content/Context#BIND_INCLUDE_CAPABILITIES) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): If binding from an app that has specific capabilities due to its foreground state such as an activity or foreground service, then this flag will allow the bound app to get the same capabilities, as long as it has the required permissions as well.                                                                                         | | `int`                                                              | [BIND_NOT_FOREGROUND](https://developer.android.com/reference/android/content/Context#BIND_NOT_FOREGROUND) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): don't allow this binding to raise the target service's process to the foreground scheduling priority.                                                                                                                                                                                                                                                      | | `int`                                                              | [BIND_NOT_PERCEPTIBLE](https://developer.android.com/reference/android/content/Context#BIND_NOT_PERCEPTIBLE) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): If binding from an app that is visible or user-perceptible, lower the target service's importance to below the perceptible level.                                                                                                                                                                                                                        | | `int`                                                              | [BIND_SHARED_ISOLATED_PROCESS](https://developer.android.com/reference/android/content/Context#BIND_SHARED_ISOLATED_PROCESS) Flag for[bindIsolatedService(Intent, BindServiceFlags, String, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): Bind the service into a shared isolated process.                                                                                                                                                                                                                                             | | `int`                                                              | [BIND_WAIVE_PRIORITY](https://developer.android.com/reference/android/content/Context#BIND_WAIVE_PRIORITY) Flag for[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)): don't impact the scheduling or memory management priority of the target service's hosting process.                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [BIOMETRIC_SERVICE](https://developer.android.com/reference/android/content/Context#BIOMETRIC_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[BiometricManager](https://developer.android.com/reference/android/hardware/biometrics/BiometricManager)for handling biometric and PIN/pattern/password authentication.                                                                                                                                                                                                                                                                                                                                | | [String](https://developer.android.com/reference/java/lang/String) | [BLOB_STORE_SERVICE](https://developer.android.com/reference/android/content/Context#BLOB_STORE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[BlobStoreManager](https://developer.android.com/reference/android/app/blob/BlobStoreManager)for contributing and accessing data blobs from the blob store maintained by the system.                                                                                                                                                                                                                                                                                                                 | | [String](https://developer.android.com/reference/java/lang/String) | [BLUETOOTH_SERVICE](https://developer.android.com/reference/android/content/Context#BLUETOOTH_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[BluetoothManager](https://developer.android.com/reference/android/bluetooth/BluetoothManager)for using Bluetooth.                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://developer.android.com/reference/java/lang/String) | [BUGREPORT_SERVICE](https://developer.android.com/reference/android/content/Context#BUGREPORT_SERVICE) Service to capture a bugreport.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://developer.android.com/reference/java/lang/String) | [CAMERA_SERVICE](https://developer.android.com/reference/android/content/Context#CAMERA_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[CameraManager](https://developer.android.com/reference/android/hardware/camera2/CameraManager)for interacting with camera devices.                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [CAPTIONING_SERVICE](https://developer.android.com/reference/android/content/Context#CAPTIONING_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[CaptioningManager](https://developer.android.com/reference/android/view/accessibility/CaptioningManager)for obtaining captioning properties and listening for changes in captioning preferences.                                                                                                                                                                                                                                                                                                    | | [String](https://developer.android.com/reference/java/lang/String) | [CARRIER_CONFIG_SERVICE](https://developer.android.com/reference/android/content/Context#CARRIER_CONFIG_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[CarrierConfigManager](https://developer.android.com/reference/android/telephony/CarrierConfigManager)for reading carrier configuration values.                                                                                                                                                                                                                                                                                                                                              | | [String](https://developer.android.com/reference/java/lang/String) | [CLIPBOARD_SERVICE](https://developer.android.com/reference/android/content/Context#CLIPBOARD_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[ClipboardManager](https://developer.android.com/reference/android/content/ClipboardManager)for accessing and modifying the contents of the global clipboard.                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [COMPANION_DEVICE_SERVICE](https://developer.android.com/reference/android/content/Context#COMPANION_DEVICE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[CompanionDeviceManager](https://developer.android.com/reference/android/companion/CompanionDeviceManager)for managing companion devices                                                                                                                                                                                                                                                                                                                                                 | | [String](https://developer.android.com/reference/java/lang/String) | [CONNECTIVITY_DIAGNOSTICS_SERVICE](https://developer.android.com/reference/android/content/Context#CONNECTIVITY_DIAGNOSTICS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[ConnectivityDiagnosticsManager](https://developer.android.com/reference/android/net/ConnectivityDiagnosticsManager)for performing network connectivity diagnostics as well as receiving network connectivity information from the system.                                                                                                                                                                                                                               | | [String](https://developer.android.com/reference/java/lang/String) | [CONNECTIVITY_SERVICE](https://developer.android.com/reference/android/content/Context#CONNECTIVITY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[ConnectivityManager](https://developer.android.com/reference/android/net/ConnectivityManager)for handling management of network connections.                                                                                                                                                                                                                                                                                                                                                    | | [String](https://developer.android.com/reference/java/lang/String) | [CONSUMER_IR_SERVICE](https://developer.android.com/reference/android/content/Context#CONSUMER_IR_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[ConsumerIrManager](https://developer.android.com/reference/android/hardware/ConsumerIrManager)for transmitting infrared signals from the device.                                                                                                                                                                                                                                                                                                                                                  | | `int`                                                              | [CONTEXT_IGNORE_SECURITY](https://developer.android.com/reference/android/content/Context#CONTEXT_IGNORE_SECURITY) Flag for use with[createPackageContext(String, int)](https://developer.android.com/reference/android/content/Context#createPackageContext(java.lang.String,%20int)): ignore any security restrictions on the Context being requested, allowing it to always be loaded.                                                                                                                                                                                                                                                                                                                                                                                  | | `int`                                                              | [CONTEXT_INCLUDE_CODE](https://developer.android.com/reference/android/content/Context#CONTEXT_INCLUDE_CODE) Flag for use with[createPackageContext(String, int)](https://developer.android.com/reference/android/content/Context#createPackageContext(java.lang.String,%20int)): include the application code with the context.                                                                                                                                                                                                                                                                                                                                                                                                                                           | | `int`                                                              | [CONTEXT_RESTRICTED](https://developer.android.com/reference/android/content/Context#CONTEXT_RESTRICTED) Flag for use with[createPackageContext(String, int)](https://developer.android.com/reference/android/content/Context#createPackageContext(java.lang.String,%20int)): a restricted context may disable specific features.                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [CREDENTIAL_SERVICE](https://developer.android.com/reference/android/content/Context#CREDENTIAL_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[CredentialManager](https://developer.android.com/reference/android/credentials/CredentialManager)to authenticate a user to your app.                                                                                                                                                                                                                                                                                                                                                                | | [String](https://developer.android.com/reference/java/lang/String) | [CROSS_PROFILE_APPS_SERVICE](https://developer.android.com/reference/android/content/Context#CROSS_PROFILE_APPS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[CrossProfileApps](https://developer.android.com/reference/android/content/pm/CrossProfileApps)for cross profile operations.                                                                                                                                                                                                                                                                                                                                                         | | `int`                                                              | [DEVICE_ID_DEFAULT](https://developer.android.com/reference/android/content/Context#DEVICE_ID_DEFAULT) The default device ID, which is the ID of the primary (non-virtual) device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | `int`                                                              | [DEVICE_ID_INVALID](https://developer.android.com/reference/android/content/Context#DEVICE_ID_INVALID) Invalid device ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [DEVICE_LOCK_SERVICE](https://developer.android.com/reference/android/content/Context#DEVICE_LOCK_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[DeviceLockManager](https://developer.android.com/reference/android/devicelock/DeviceLockManager).                                                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://developer.android.com/reference/java/lang/String) | [DEVICE_POLICY_SERVICE](https://developer.android.com/reference/android/content/Context#DEVICE_POLICY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[DevicePolicyManager](https://developer.android.com/reference/android/app/admin/DevicePolicyManager)for working with global device policy management.                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [DISPLAY_HASH_SERVICE](https://developer.android.com/reference/android/content/Context#DISPLAY_HASH_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to access[DisplayHashManager](https://developer.android.com/reference/android/view/displayhash/DisplayHashManager)to handle display hashes.                                                                                                                                                                                                                                                                                                                                                                   | | [String](https://developer.android.com/reference/java/lang/String) | [DISPLAY_SERVICE](https://developer.android.com/reference/android/content/Context#DISPLAY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[DisplayManager](https://developer.android.com/reference/android/hardware/display/DisplayManager)for interacting with display devices.                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://developer.android.com/reference/java/lang/String) | [DOMAIN_VERIFICATION_SERVICE](https://developer.android.com/reference/android/content/Context#DOMAIN_VERIFICATION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to access[DomainVerificationManager](https://developer.android.com/reference/android/content/pm/verify/domain/DomainVerificationManager)to retrieve approval and user state for declared web domains.                                                                                                                                                                                                                                                                                           | | [String](https://developer.android.com/reference/java/lang/String) | [DOWNLOAD_SERVICE](https://developer.android.com/reference/android/content/Context#DOWNLOAD_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[DownloadManager](https://developer.android.com/reference/android/app/DownloadManager)for requesting HTTP downloads.                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://developer.android.com/reference/java/lang/String) | [DROPBOX_SERVICE](https://developer.android.com/reference/android/content/Context#DROPBOX_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[DropBoxManager](https://developer.android.com/reference/android/os/DropBoxManager)instance for recording diagnostic logs.                                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://developer.android.com/reference/java/lang/String) | [EUICC_SERVICE](https://developer.android.com/reference/android/content/Context#EUICC_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[EuiccManager](https://developer.android.com/reference/android/telephony/euicc/EuiccManager)to manage the device eUICC (embedded SIM).                                                                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [FILE_INTEGRITY_SERVICE](https://developer.android.com/reference/android/content/Context#FILE_INTEGRITY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve an[FileIntegrityManager](https://developer.android.com/reference/android/security/FileIntegrityManager).                                                                                                                                                                                                                                                                                                                                                                                      | | [String](https://developer.android.com/reference/java/lang/String) | [FINGERPRINT_SERVICE](https://developer.android.com/reference/android/content/Context#FINGERPRINT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[FingerprintManager](https://developer.android.com/reference/android/hardware/fingerprint/FingerprintManager)for handling management of fingerprints.                                                                                                                                                                                                                                                                                                                                              | | [String](https://developer.android.com/reference/java/lang/String) | [GAME_SERVICE](https://developer.android.com/reference/android/content/Context#GAME_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[GameManager](https://developer.android.com/reference/android/app/GameManager).                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [GRAMMATICAL_INFLECTION_SERVICE](https://developer.android.com/reference/android/content/Context#GRAMMATICAL_INFLECTION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[GrammaticalInflectionManager](https://developer.android.com/reference/android/app/GrammaticalInflectionManager).                                                                                                                                                                                                                                                                                                                                                            | | [String](https://developer.android.com/reference/java/lang/String) | [HARDWARE_PROPERTIES_SERVICE](https://developer.android.com/reference/android/content/Context#HARDWARE_PROPERTIES_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[HardwarePropertiesManager](https://developer.android.com/reference/android/os/HardwarePropertiesManager)for accessing the hardware properties service.                                                                                                                                                                                                                                                                                                                            | | [String](https://developer.android.com/reference/java/lang/String) | [HEALTHCONNECT_SERVICE](https://developer.android.com/reference/android/content/Context#HEALTHCONNECT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[HealthConnectManager](https://developer.android.com/reference/android/health/connect/HealthConnectManager).                                                                                                                                                                                                                                                                                                                                                                                   | | [String](https://developer.android.com/reference/java/lang/String) | [INPUT_METHOD_SERVICE](https://developer.android.com/reference/android/content/Context#INPUT_METHOD_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[InputMethodManager](https://developer.android.com/reference/android/view/inputmethod/InputMethodManager)for accessing input methods.                                                                                                                                                                                                                                                                                                                                                            | | [String](https://developer.android.com/reference/java/lang/String) | [INPUT_SERVICE](https://developer.android.com/reference/android/content/Context#INPUT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[InputManager](https://developer.android.com/reference/android/hardware/input/InputManager)for interacting with input devices.                                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://developer.android.com/reference/java/lang/String) | [IPSEC_SERVICE](https://developer.android.com/reference/android/content/Context#IPSEC_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[IpSecManager](https://developer.android.com/reference/android/net/IpSecManager)for encrypting Sockets or Networks with IPSec.                                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://developer.android.com/reference/java/lang/String) | [JOB_SCHEDULER_SERVICE](https://developer.android.com/reference/android/content/Context#JOB_SCHEDULER_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[JobScheduler](https://developer.android.com/reference/android/app/job/JobScheduler)instance for managing occasional background tasks.                                                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [KEYGUARD_SERVICE](https://developer.android.com/reference/android/content/Context#KEYGUARD_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[KeyguardManager](https://developer.android.com/reference/android/app/KeyguardManager)for controlling keyguard.                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [LAUNCHER_APPS_SERVICE](https://developer.android.com/reference/android/content/Context#LAUNCHER_APPS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[LauncherApps](https://developer.android.com/reference/android/content/pm/LauncherApps)for querying and monitoring launchable apps across profiles of a user.                                                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [LAYOUT_INFLATER_SERVICE](https://developer.android.com/reference/android/content/Context#LAYOUT_INFLATER_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater)for inflating layout resources in this context.                                                                                                                                                                                                                                                                                                                                                       | | [String](https://developer.android.com/reference/java/lang/String) | [LOCALE_SERVICE](https://developer.android.com/reference/android/content/Context#LOCALE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[LocaleManager](https://developer.android.com/reference/android/app/LocaleManager).                                                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [LOCATION_SERVICE](https://developer.android.com/reference/android/content/Context#LOCATION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[LocationManager](https://developer.android.com/reference/android/location/LocationManager)for controlling location updates.                                                                                                                                                                                                                                                                                                                                                                             | | [String](https://developer.android.com/reference/java/lang/String) | [MEDIA_COMMUNICATION_SERVICE](https://developer.android.com/reference/android/content/Context#MEDIA_COMMUNICATION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[MediaCommunicationManager](https://developer.android.com/reference/android/media/MediaCommunicationManager)for managing[MediaSession2](https://developer.android.com/reference/android/media/MediaSession2).                                                                                                                                                                                                                                                                      | | [String](https://developer.android.com/reference/java/lang/String) | [MEDIA_METRICS_SERVICE](https://developer.android.com/reference/android/content/Context#MEDIA_METRICS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[MediaMetricsManager](https://developer.android.com/reference/android/media/metrics/MediaMetricsManager)for interacting with media metrics on the device.                                                                                                                                                                                                                                                                                                                                      | | [String](https://developer.android.com/reference/java/lang/String) | [MEDIA_PROJECTION_SERVICE](https://developer.android.com/reference/android/content/Context#MEDIA_PROJECTION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[MediaProjectionManager](https://developer.android.com/reference/android/media/projection/MediaProjectionManager)instance for managing media projection sessions.                                                                                                                                                                                                                                                                                                                        | | [String](https://developer.android.com/reference/java/lang/String) | [MEDIA_ROUTER_SERVICE](https://developer.android.com/reference/android/content/Context#MEDIA_ROUTER_SERVICE) Use with[getSystemService(Class)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.Class<T>))to retrieve a[MediaRouter](https://developer.android.com/reference/android/media/MediaRouter)for controlling and managing routing of media.                                                                                                                                                                                                                                                                                                                                                                            | | [String](https://developer.android.com/reference/java/lang/String) | [MEDIA_SESSION_SERVICE](https://developer.android.com/reference/android/content/Context#MEDIA_SESSION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[MediaSessionManager](https://developer.android.com/reference/android/media/session/MediaSessionManager)for managing media Sessions.                                                                                                                                                                                                                                                                                                                                                           | | [String](https://developer.android.com/reference/java/lang/String) | [MIDI_SERVICE](https://developer.android.com/reference/android/content/Context#MIDI_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[MidiManager](https://developer.android.com/reference/android/media/midi/MidiManager)for accessing the MIDI service.                                                                                                                                                                                                                                                                                                                                                                                             | | `int`                                                              | [MODE_APPEND](https://developer.android.com/reference/android/content/Context#MODE_APPEND) File creation mode: for use with[openFileOutput(String, int)](https://developer.android.com/reference/android/content/Context#openFileOutput(java.lang.String,%20int)), if the file already exists then write data to the end of the existing file instead of erasing it.                                                                                                                                                                                                                                                                                                                                                                                                       | | `int`                                                              | [MODE_ENABLE_WRITE_AHEAD_LOGGING](https://developer.android.com/reference/android/content/Context#MODE_ENABLE_WRITE_AHEAD_LOGGING) Database open flag: when set, the database is opened with write-ahead logging enabled by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | `int`                                                              | [MODE_MULTI_PROCESS](https://developer.android.com/reference/android/content/Context#MODE_MULTI_PROCESS) *This constant was deprecated in API level 23. MODE_MULTI_PROCESS does not work reliably in some versions of Android, and furthermore does not provide any mechanism for reconciling concurrent modifications across processes. Applications should not attempt to use it. Instead, they should use an explicit cross-process data management approach such as[ContentProvider](https://developer.android.com/reference/android/content/ContentProvider).*                                                                                                                                                                                                        | | `int`                                                              | [MODE_NO_LOCALIZED_COLLATORS](https://developer.android.com/reference/android/content/Context#MODE_NO_LOCALIZED_COLLATORS) Database open flag: when set, the database is opened without support for localized collators.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | `int`                                                              | [MODE_PRIVATE](https://developer.android.com/reference/android/content/Context#MODE_PRIVATE) File creation mode: the default mode, where the created file can only be accessed by the calling application (or all applications sharing the same user ID).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | `int`                                                              | [MODE_WORLD_READABLE](https://developer.android.com/reference/android/content/Context#MODE_WORLD_READABLE) *This constant was deprecated in API level 17. Creating world-readable files is very dangerous, and likely to cause security holes in applications. It is strongly discouraged; instead, applications should use more formal mechanism for interactions such as[ContentProvider](https://developer.android.com/reference/android/content/ContentProvider),[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver), and[Service](https://developer.android.com/reference/android/app/Service). There are no guarantees that this access mode will remain on a file, such as when it goes through a backup and restore.*   | | `int`                                                              | [MODE_WORLD_WRITEABLE](https://developer.android.com/reference/android/content/Context#MODE_WORLD_WRITEABLE) *This constant was deprecated in API level 17. Creating world-writable files is very dangerous, and likely to cause security holes in applications. It is strongly discouraged; instead, applications should use more formal mechanism for interactions such as[ContentProvider](https://developer.android.com/reference/android/content/ContentProvider),[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver), and[Service](https://developer.android.com/reference/android/app/Service). There are no guarantees that this access mode will remain on a file, such as when it goes through a backup and restore.* | | [String](https://developer.android.com/reference/java/lang/String) | [NETWORK_STATS_SERVICE](https://developer.android.com/reference/android/content/Context#NETWORK_STATS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[NetworkStatsManager](https://developer.android.com/reference/android/app/usage/NetworkStatsManager)for querying network usage stats.                                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [NFC_SERVICE](https://developer.android.com/reference/android/content/Context#NFC_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[NfcManager](https://developer.android.com/reference/android/nfc/NfcManager)for using NFC.                                                                                                                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [NOTIFICATION_SERVICE](https://developer.android.com/reference/android/content/Context#NOTIFICATION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[NotificationManager](https://developer.android.com/reference/android/app/NotificationManager)for informing the user of background events.                                                                                                                                                                                                                                                                                                                                                       | | [String](https://developer.android.com/reference/java/lang/String) | [NSD_SERVICE](https://developer.android.com/reference/android/content/Context#NSD_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[NsdManager](https://developer.android.com/reference/android/net/nsd/NsdManager)for handling management of network service discovery                                                                                                                                                                                                                                                                                                                                                                               | | [String](https://developer.android.com/reference/java/lang/String) | [OVERLAY_SERVICE](https://developer.android.com/reference/android/content/Context#OVERLAY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[OverlayManager](https://developer.android.com/reference/android/content/om/OverlayManager)for managing overlay packages.                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [PEOPLE_SERVICE](https://developer.android.com/reference/android/content/Context#PEOPLE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to access a[PeopleManager](https://developer.android.com/reference/android/app/people/PeopleManager)to interact with your published conversations.                                                                                                                                                                                                                                                                                                                                                                        | | [String](https://developer.android.com/reference/java/lang/String) | [PERFORMANCE_HINT_SERVICE](https://developer.android.com/reference/android/content/Context#PERFORMANCE_HINT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[PerformanceHintManager](https://developer.android.com/reference/android/os/PerformanceHintManager)for accessing the performance hinting service.                                                                                                                                                                                                                                                                                                                                        | | [String](https://developer.android.com/reference/java/lang/String) | [POWER_SERVICE](https://developer.android.com/reference/android/content/Context#POWER_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[PowerManager](https://developer.android.com/reference/android/os/PowerManager)for controlling power management, including "wake locks," which let you keep the device on while you're running long tasks.                                                                                                                                                                                                                                                                                                     | | [String](https://developer.android.com/reference/java/lang/String) | [PRINT_SERVICE](https://developer.android.com/reference/android/content/Context#PRINT_SERVICE) [PrintManager](https://developer.android.com/reference/android/print/PrintManager)for printing and managing printers and print tasks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | `int`                                                              | [RECEIVER_EXPORTED](https://developer.android.com/reference/android/content/Context#RECEIVER_EXPORTED) Flag for[registerReceiver(BroadcastReceiver, IntentFilter)](https://developer.android.com/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)): The receiver can receive broadcasts from other Apps.                                                                                                                                                                                                                                                                                                                                                                                              | | `int`                                                              | [RECEIVER_NOT_EXPORTED](https://developer.android.com/reference/android/content/Context#RECEIVER_NOT_EXPORTED) Flag for[registerReceiver(BroadcastReceiver, IntentFilter)](https://developer.android.com/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)): The receiver cannot receive broadcasts from other Apps.                                                                                                                                                                                                                                                                                                                                                                                   | | `int`                                                              | [RECEIVER_VISIBLE_TO_INSTANT_APPS](https://developer.android.com/reference/android/content/Context#RECEIVER_VISIBLE_TO_INSTANT_APPS) Flag for[registerReceiver(BroadcastReceiver, IntentFilter)](https://developer.android.com/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)): The receiver can receive broadcasts from Instant Apps.                                                                                                                                                                                                                                                                                                                                                              | | [String](https://developer.android.com/reference/java/lang/String) | [RESTRICTIONS_SERVICE](https://developer.android.com/reference/android/content/Context#RESTRICTIONS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[RestrictionsManager](https://developer.android.com/reference/android/content/RestrictionsManager)for retrieving application restrictions and requesting permissions for restricted operations.                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [ROLE_SERVICE](https://developer.android.com/reference/android/content/Context#ROLE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[RoleManager](https://developer.android.com/reference/android/app/role/RoleManager)for managing roles.                                                                                                                                                                                                                                                                                                                                                                                                           | | [String](https://developer.android.com/reference/java/lang/String) | [SEARCH_SERVICE](https://developer.android.com/reference/android/content/Context#SEARCH_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[SearchManager](https://developer.android.com/reference/android/app/SearchManager)for handling searches.                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://developer.android.com/reference/java/lang/String) | [SENSOR_SERVICE](https://developer.android.com/reference/android/content/Context#SENSOR_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[SensorManager](https://developer.android.com/reference/android/hardware/SensorManager)for accessing sensors.                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://developer.android.com/reference/java/lang/String) | [SHORTCUT_SERVICE](https://developer.android.com/reference/android/content/Context#SHORTCUT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[ShortcutManager](https://developer.android.com/reference/android/content/pm/ShortcutManager)for accessing the launcher shortcut service.                                                                                                                                                                                                                                                                                                                                                                | | [String](https://developer.android.com/reference/java/lang/String) | [STATUS_BAR_SERVICE](https://developer.android.com/reference/android/content/Context#STATUS_BAR_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[StatusBarManager](https://developer.android.com/reference/android/app/StatusBarManager)for interacting with the status bar and quick settings.                                                                                                                                                                                                                                                                                                                                                      | | [String](https://developer.android.com/reference/java/lang/String) | [STORAGE_SERVICE](https://developer.android.com/reference/android/content/Context#STORAGE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[StorageManager](https://developer.android.com/reference/android/os/storage/StorageManager)for accessing system storage functions.                                                                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [STORAGE_STATS_SERVICE](https://developer.android.com/reference/android/content/Context#STORAGE_STATS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[StorageStatsManager](https://developer.android.com/reference/android/app/usage/StorageStatsManager)for accessing system storage statistics.                                                                                                                                                                                                                                                                                                                                                   | | [String](https://developer.android.com/reference/java/lang/String) | [SYSTEM_HEALTH_SERVICE](https://developer.android.com/reference/android/content/Context#SYSTEM_HEALTH_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[SystemHealthManager](https://developer.android.com/reference/android/os/health/SystemHealthManager)for accessing system health (battery, power, memory, etc) metrics.                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [TELECOM_SERVICE](https://developer.android.com/reference/android/content/Context#TELECOM_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[TelecomManager](https://developer.android.com/reference/android/telecom/TelecomManager)to manage telecom-related features of the device.                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [TELEPHONY_IMS_SERVICE](https://developer.android.com/reference/android/content/Context#TELEPHONY_IMS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve an[ImsManager](https://developer.android.com/reference/android/telephony/ims/ImsManager).                                                                                                                                                                                                                                                                                                                                                                                                       | | [String](https://developer.android.com/reference/java/lang/String) | [TELEPHONY_SERVICE](https://developer.android.com/reference/android/content/Context#TELEPHONY_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[TelephonyManager](https://developer.android.com/reference/android/telephony/TelephonyManager)for handling management the telephony features of the device.                                                                                                                                                                                                                                                                                                                                            | | [String](https://developer.android.com/reference/java/lang/String) | [TELEPHONY_SUBSCRIPTION_SERVICE](https://developer.android.com/reference/android/content/Context#TELEPHONY_SUBSCRIPTION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[SubscriptionManager](https://developer.android.com/reference/android/telephony/SubscriptionManager)for handling management the telephony subscriptions of the device.                                                                                                                                                                                                                                                                                                       | | [String](https://developer.android.com/reference/java/lang/String) | [TEXT_CLASSIFICATION_SERVICE](https://developer.android.com/reference/android/content/Context#TEXT_CLASSIFICATION_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[TextClassificationManager](https://developer.android.com/reference/android/view/textclassifier/TextClassificationManager)for text classification services.                                                                                                                                                                                                                                                                                                                        | | [String](https://developer.android.com/reference/java/lang/String) | [TEXT_SERVICES_MANAGER_SERVICE](https://developer.android.com/reference/android/content/Context#TEXT_SERVICES_MANAGER_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[TextServicesManager](https://developer.android.com/reference/android/view/textservice/TextServicesManager)for accessing text services.                                                                                                                                                                                                                                                                                                                                        | | [String](https://developer.android.com/reference/java/lang/String) | [TV_INPUT_SERVICE](https://developer.android.com/reference/android/content/Context#TV_INPUT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[TvInputManager](https://developer.android.com/reference/android/media/tv/TvInputManager)for interacting with TV inputs on the device.                                                                                                                                                                                                                                                                                                                                                                   | | [String](https://developer.android.com/reference/java/lang/String) | [TV_INTERACTIVE_APP_SERVICE](https://developer.android.com/reference/android/content/Context#TV_INTERACTIVE_APP_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[TvInteractiveAppManager](https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager)for interacting with TV interactive applications on the device.                                                                                                                                                                                                                                                                                               | | [String](https://developer.android.com/reference/java/lang/String) | [UI_MODE_SERVICE](https://developer.android.com/reference/android/content/Context#UI_MODE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[UiModeManager](https://developer.android.com/reference/android/app/UiModeManager)for controlling UI modes.                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://developer.android.com/reference/java/lang/String) | [USAGE_STATS_SERVICE](https://developer.android.com/reference/android/content/Context#USAGE_STATS_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[UsageStatsManager](https://developer.android.com/reference/android/app/usage/UsageStatsManager)for querying device usage stats.                                                                                                                                                                                                                                                                                                                                                                   | | [String](https://developer.android.com/reference/java/lang/String) | [USB_SERVICE](https://developer.android.com/reference/android/content/Context#USB_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[UsbManager](https://developer.android.com/reference/android/hardware/usb/UsbManager)for access to USB devices (as a USB host) and for controlling this device's behavior as a USB device.                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [USER_SERVICE](https://developer.android.com/reference/android/content/Context#USER_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[UserManager](https://developer.android.com/reference/android/os/UserManager)for managing users on devices that support multiple users.                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://developer.android.com/reference/java/lang/String) | [VIBRATOR_MANAGER_SERVICE](https://developer.android.com/reference/android/content/Context#VIBRATOR_MANAGER_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[VibratorManager](https://developer.android.com/reference/android/os/VibratorManager)for accessing the device vibrators, interacting with individual ones and playing synchronized effects on multiple vibrators.                                                                                                                                                                                                                                                                        | | [String](https://developer.android.com/reference/java/lang/String) | [VIBRATOR_SERVICE](https://developer.android.com/reference/android/content/Context#VIBRATOR_SERVICE) *This constant was deprecated in API level 31. Use[VibratorManager](https://developer.android.com/reference/android/os/VibratorManager)to retrieve the default system vibrator.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | [String](https://developer.android.com/reference/java/lang/String) | [VIRTUAL_DEVICE_SERVICE](https://developer.android.com/reference/android/content/Context#VIRTUAL_DEVICE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[VirtualDeviceManager](https://developer.android.com/reference/android/companion/virtual/VirtualDeviceManager)for managing virtual devices.                                                                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [VPN_MANAGEMENT_SERVICE](https://developer.android.com/reference/android/content/Context#VPN_MANAGEMENT_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[VpnManager](https://developer.android.com/reference/android/net/VpnManager)to manage profiles for the platform built-in VPN.                                                                                                                                                                                                                                                                                                                                                                | | [String](https://developer.android.com/reference/java/lang/String) | [WALLPAPER_SERVICE](https://developer.android.com/reference/android/content/Context#WALLPAPER_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a com.android.server.WallpaperService for accessing wallpapers.                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [String](https://developer.android.com/reference/java/lang/String) | [WIFI_AWARE_SERVICE](https://developer.android.com/reference/android/content/Context#WIFI_AWARE_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[WifiAwareManager](https://developer.android.com/reference/android/net/wifi/aware/WifiAwareManager)for handling management of Wi-Fi Aware.                                                                                                                                                                                                                                                                                                                                                           | | [String](https://developer.android.com/reference/java/lang/String) | [WIFI_P2P_SERVICE](https://developer.android.com/reference/android/content/Context#WIFI_P2P_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[WifiP2pManager](https://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager)for handling management of Wi-Fi peer-to-peer connections.                                                                                                                                                                                                                                                                                                                                                  | | [String](https://developer.android.com/reference/java/lang/String) | [WIFI_RTT_RANGING_SERVICE](https://developer.android.com/reference/android/content/Context#WIFI_RTT_RANGING_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[WifiRttManager](https://developer.android.com/reference/android/net/wifi/rtt/WifiRttManager)for ranging devices with wifi.                                                                                                                                                                                                                                                                                                                                                              | | [String](https://developer.android.com/reference/java/lang/String) | [WIFI_SERVICE](https://developer.android.com/reference/android/content/Context#WIFI_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[WifiManager](https://developer.android.com/reference/android/net/wifi/WifiManager)for handling management of Wi-Fi access.                                                                                                                                                                                                                                                                                                                                                                                      | | [String](https://developer.android.com/reference/java/lang/String) | [WINDOW_SERVICE](https://developer.android.com/reference/android/content/Context#WINDOW_SERVICE) Use with[getSystemService(java.lang.String)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))to retrieve a[WindowManager](https://developer.android.com/reference/android/view/WindowManager)for accessing the system's window manager.                                                                                                                                                                                                                                                                                                                                                                                | |
| From interface[android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2) |-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [TRIM_MEMORY_BACKGROUND](https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_BACKGROUND) Level for[onTrimMemory(int)](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)): the process has gone on to the LRU list.                                                                                                                                                 | | `int` | [TRIM_MEMORY_COMPLETE](https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_COMPLETE) Level for[onTrimMemory(int)](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)): the process is nearing the end of the background LRU list, and if more memory isn't found soon it will be killed.                                                                            | | `int` | [TRIM_MEMORY_MODERATE](https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_MODERATE) Level for[onTrimMemory(int)](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)): the process is around the middle of the background LRU list; freeing memory can help the system keep other processes running later in the list for better overall performance.               | | `int` | [TRIM_MEMORY_RUNNING_CRITICAL](https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_CRITICAL) Level for[onTrimMemory(int)](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)): the process is not an expendable background process, but the device is running extremely low on memory and is about to not be able to keep any background processes running. | | `int` | [TRIM_MEMORY_RUNNING_LOW](https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_LOW) Level for[onTrimMemory(int)](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)): the process is not an expendable background process, but the device is running low on memory.                                                                                          | | `int` | [TRIM_MEMORY_RUNNING_MODERATE](https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_MODERATE) Level for[onTrimMemory(int)](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)): the process is not an expendable background process, but the device is running moderately low on memory.                                                                     | | `int` | [TRIM_MEMORY_UI_HIDDEN](https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_UI_HIDDEN) Level for[onTrimMemory(int)](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)): the process had been showing a user interface, and is no longer doing so.                                                                                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

|                                                                           ### Public constructors                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[IsolatedService](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#IsolatedService())`() ` |

|                                                                                                                                                                                                                                                                                                                                                                                           ### Public methods                                                                                                                                                                                                                                                                                                                                                                                           ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` final `[EventUrlProvider](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/EventUrlProvider)                   | ` `[getEventUrlProvider](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getEventUrlProvider(android.adservices.ondevicepersonalization.RequestToken))`(`[RequestToken](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RequestToken)` requestToken) ` Returns an[EventUrlProvider](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/EventUrlProvider)for the current request.                                     |
| ` final `[FederatedComputeScheduler](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/FederatedComputeScheduler) | ` `[getFederatedComputeScheduler](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getFederatedComputeScheduler(android.adservices.ondevicepersonalization.RequestToken))`(`[RequestToken](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RequestToken)` requestToken) ` Returns an[FederatedComputeScheduler](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/FederatedComputeScheduler)for the current request. |
| ` final `[MutableKeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/MutableKeyValueStore)           | ` `[getLocalData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getLocalData(android.adservices.ondevicepersonalization.RequestToken))`(`[RequestToken](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RequestToken)` requestToken) ` Returns a Data Access Object for the LOCAL_DATA table.                                                                                                                                                                                |
| ` final `[LogReader](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/LogReader)                                 | ` `[getLogReader](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getLogReader(android.adservices.ondevicepersonalization.RequestToken))`(`[RequestToken](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RequestToken)` requestToken) ` Returns a DAO for the REQUESTS and EVENTS tables that provides access to the rows that are readable by the IsolatedService.                                                                                                           |
| ` final `[KeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/KeyValueStore)                         | ` `[getRemoteData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getRemoteData(android.adservices.ondevicepersonalization.RequestToken))`(`[RequestToken](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RequestToken)` requestToken) ` Returns a Data Access Object for the REMOTE_DATA table.                                                                                                                                                                             |
| ` final `[UserData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/UserData)                                   | ` `[getUserData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getUserData(android.adservices.ondevicepersonalization.RequestToken))`(`[RequestToken](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RequestToken)` requestToken) ` Returns the platform-provided[UserData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/UserData)for the current request.                                                  |
| ` `[IBinder](https://developer.android.com/reference/android/os/IBinder)                                                                                                     | ` `[onBind](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onBind(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Handles binding to the[IsolatedService](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService).                                                                                                                                                                                    |
| ` void`                                                                                                                                                                      | ` `[onCreate](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onCreate())`() ` Creates a binder for an[IsolatedService](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService).                                                                                                                                                                                                                                                                                      |
| ` abstract `[IsolatedWorker](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedWorker)                    | ` `[onRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onRequest(android.adservices.ondevicepersonalization.RequestToken))`(`[RequestToken](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RequestToken)` requestToken) ` Return an instance of an[IsolatedWorker](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedWorker)that handles client requests.                                          |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.app.Service](https://developer.android.com/reference/android/app/Service)` ` |-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                 | ` `[attachBaseContext](https://developer.android.com/reference/android/app/Service#attachBaseContext(android.content.Context))`(`[Context](https://developer.android.com/reference/android/content/Context)` newBase) ` Set the base context for this ContextWrapper.                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                 | ` `[dump](https://developer.android.com/reference/android/app/Service#dump(java.io.FileDescriptor,%20java.io.PrintWriter,%20java.lang.String[]))`(`[FileDescriptor](https://developer.android.com/reference/java/io/FileDescriptor)` fd, `[PrintWriter](https://developer.android.com/reference/java/io/PrintWriter)` writer, `[String[]](https://developer.android.com/reference/java/lang/String)` args) ` Print the Service's state into the given stream.                                                                                                                                                                                                                                   | | ` final `[Application](https://developer.android.com/reference/android/app/Application) | ` `[getApplication](https://developer.android.com/reference/android/app/Service#getApplication())`() ` Return the application that owns this service.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final int`                                                                            | ` `[getForegroundServiceType](https://developer.android.com/reference/android/app/Service#getForegroundServiceType())`() ` If the service has become a foreground service by calling[startForeground(int, android.app.Notification)](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))or[startForeground(int, android.app.Notification, int)](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification,%20int)),[getForegroundServiceType()](https://developer.android.com/reference/android/app/Service#getForegroundServiceType())returns the current foreground service type. | | ` abstract `[IBinder](https://developer.android.com/reference/android/os/IBinder)       | ` `[onBind](https://developer.android.com/reference/android/app/Service#onBind(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Return the communication channel to the service.                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                 | ` `[onConfigurationChanged](https://developer.android.com/reference/android/app/Service#onConfigurationChanged(android.content.res.Configuration))`(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration)` newConfig) ` Called by the system when the device configuration changes while your component is running.                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                 | ` `[onCreate](https://developer.android.com/reference/android/app/Service#onCreate())`() ` Called by the system when the service is first created.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                 | ` `[onDestroy](https://developer.android.com/reference/android/app/Service#onDestroy())`() ` Called by the system to notify a Service that it is no longer used and is being removed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                 | ` `[onLowMemory](https://developer.android.com/reference/android/app/Service#onLowMemory())`() ` This is called when the overall system is running low on memory, and actively running processes should trim their memory usage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                 | ` `[onRebind](https://developer.android.com/reference/android/app/Service#onRebind(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Called when new clients have connected to the service, after it had previously been notified that all had disconnected in its[onUnbind(Intent)](https://developer.android.com/reference/android/app/Service#onUnbind(android.content.Intent)).                                                                                                                                                                                                                                                | | ` void`                                                                                 | ` `[onStart](https://developer.android.com/reference/android/app/Service#onStart(android.content.Intent,%20int))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, int startId) ` *This method was deprecated in API level 15. Implement[onStartCommand(android.content.Intent, int, int)](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))instead.*                                                                                                                                                                                                                                         | | ` int`                                                                                  | ` `[onStartCommand](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, int flags, int startId) ` Called by the system every time a client explicitly starts the service by calling[Context.startService(Intent)](https://developer.android.com/reference/android/content/Context#startService(android.content.Intent)), providing the arguments it supplied and a unique integer token representing the start request.                                                                                                                       | | ` void`                                                                                 | ` `[onTaskRemoved](https://developer.android.com/reference/android/app/Service#onTaskRemoved(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` rootIntent) ` This is called if the service is currently running and the user has removed a task that comes from the service's application.                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                 | ` `[onTimeout](https://developer.android.com/reference/android/app/Service#onTimeout(int))`(int startId) ` Callback called on timeout for[ServiceInfo#FOREGROUND_SERVICE_TYPE_SHORT_SERVICE](https://developer.android.com/reference/android/content/pm/ServiceInfo#FOREGROUND_SERVICE_TYPE_SHORT_SERVICE).                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                 | ` `[onTrimMemory](https://developer.android.com/reference/android/app/Service#onTrimMemory(int))`(int level) ` Called when the operating system has determined that it is a good time for a process to trim unneeded memory from its process.                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` boolean`                                                                              | ` `[onUnbind](https://developer.android.com/reference/android/app/Service#onUnbind(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Called when all clients have disconnected from a particular interface published by the service.                                                                                                                                                                                                                                                                                                                                                                                               | | ` final void`                                                                           | ` `[startForeground](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))`(int id, `[Notification](https://developer.android.com/reference/android/app/Notification)` notification) ` If your service is started (running through[Context#startService(Intent)](https://developer.android.com/reference/android/content/Context#startService(android.content.Intent))), then also make this service run in the foreground, supplying the ongoing notification to be shown to the user while in this state.                                                                                                                             | | ` final void`                                                                           | ` `[startForeground](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification,%20int))`(int id, `[Notification](https://developer.android.com/reference/android/app/Notification)` notification, int foregroundServiceType) ` An overloaded version of[startForeground(int, android.app.Notification)](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))with additional foregroundServiceType parameter.                                                                                                                                                                         | | ` final void`                                                                           | ` `[stopForeground](https://developer.android.com/reference/android/app/Service#stopForeground(int))`(int notificationBehavior) ` Remove this service from foreground state, allowing it to be killed if more memory is needed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                           | ` `[stopForeground](https://developer.android.com/reference/android/app/Service#stopForeground(boolean))`(boolean removeNotification) ` *This method was deprecated in API level 33. call[stopForeground(int)](https://developer.android.com/reference/android/app/Service#stopForeground(int))and pass either[STOP_FOREGROUND_REMOVE](https://developer.android.com/reference/android/app/Service#STOP_FOREGROUND_REMOVE)or[STOP_FOREGROUND_DETACH](https://developer.android.com/reference/android/app/Service#STOP_FOREGROUND_DETACH)explicitly instead.*                                                                                                                                    | | ` final void`                                                                           | ` `[stopSelf](https://developer.android.com/reference/android/app/Service#stopSelf())`() ` Stop the service, if it was previously started.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` final void`                                                                           | ` `[stopSelf](https://developer.android.com/reference/android/app/Service#stopSelf(int))`(int startId) ` Old version of[stopSelfResult(int)](https://developer.android.com/reference/android/app/Service#stopSelfResult(int))that doesn't return a result.                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` final boolean`                                                                        | ` `[stopSelfResult](https://developer.android.com/reference/android/app/Service#stopSelfResult(int))`(int startId) ` Stop the service if the most recent time it was started was<var translate="no">startId</var>.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | ||
| From class` `[android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper)` ` |-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                             | ` `[attachBaseContext](https://developer.android.com/reference/android/content/ContextWrapper#attachBaseContext(android.content.Context))`(`[Context](https://developer.android.com/reference/android/content/Context)` base) ` Set the base context for this ContextWrapper.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                          | ` `[bindIsolatedService](https://developer.android.com/reference/android/content/ContextWrapper#bindIsolatedService(android.content.Intent,%20int,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, int flags, `[String](https://developer.android.com/reference/java/lang/String)` instanceName, `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` Variation of[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))that, in the specific case of isolated services, allows the caller to generate multiple instances of a service from a single component declaration.                                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                          | ` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, int flags, `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` Same as[bindService(Intent, ServiceConnection, int)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int))with executor to control ServiceConnection callbacks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                          | ` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20android.content.ServiceConnection,%20android.content.Context.BindServiceFlags))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, `[Context.BindServiceFlags](https://developer.android.com/reference/android/content/Context.BindServiceFlags)` flags) ` See[bindService(android.content.Intent, android.content.ServiceConnection, int)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int))Call[BindServiceFlags#of(long)](https://developer.android.com/reference/android/content/Context.BindServiceFlags#of(long))to obtain a BindServiceFlags object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                          | ` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, int flags) ` Connects to an application service, creating it if needed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` boolean`                                                                                          | ` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[Context.BindServiceFlags](https://developer.android.com/reference/android/content/Context.BindServiceFlags)` flags, `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` See[bindService(android.content.Intent, int, java.util.concurrent.Executor, android.content.ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))Call[BindServiceFlags#of(long)](https://developer.android.com/reference/android/content/Context.BindServiceFlags#of(long))to obtain a BindServiceFlags object.                                                                                                                                                                                                                                                                                                                                                                         | | ` int`                                                                                              | ` `[checkCallingOrSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkCallingOrSelfPermission(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission) ` Determine whether the calling process of an IPC*or you*have been granted a particular permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                              | ` `[checkCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkCallingOrSelfUriPermission(android.net.Uri,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Determine whether the calling process of an IPC*or you*has been granted permission to access a specific URI.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` int[]`                                                                                            | ` `[checkCallingOrSelfUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper#checkCallingOrSelfUriPermissions(java.util.List<android.net.Uri>,%20int))`(`[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> uris, int modeFlags) ` Determine whether the calling process of an IPC*or you*has been granted permission to access a list of URIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                              | ` `[checkCallingPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkCallingPermission(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission) ` Determine whether the calling process of an IPC you are handling has been granted a particular permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                              | ` `[checkCallingUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkCallingUriPermission(android.net.Uri,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Determine whether the calling process and user ID has been granted permission to access a specific URI.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` int[]`                                                                                            | ` `[checkCallingUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper#checkCallingUriPermissions(java.util.List<android.net.Uri>,%20int))`(`[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> uris, int modeFlags) ` Determine whether the calling process and user ID has been granted permission to access a list of URIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` int`                                                                                              | ` `[checkPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkPermission(java.lang.String,%20int,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, int pid, int uid) ` Determine whether the given permission is allowed for a particular process and user ID running in the system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` int`                                                                                              | ` `[checkSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkSelfPermission(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission) ` Determine whether*you*have been granted a particular permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                              | ` `[checkUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, `[String](https://developer.android.com/reference/java/lang/String)` readPermission, `[String](https://developer.android.com/reference/java/lang/String)` writePermission, int pid, int uid, int modeFlags) ` Check both a Uri and normal permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` int`                                                                                              | ` `[checkUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#checkUriPermission(android.net.Uri,%20int,%20int,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int pid, int uid, int modeFlags) ` Determine whether a particular process and user ID has been granted permission to access a specific URI.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int[]`                                                                                            | ` `[checkUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper#checkUriPermissions(java.util.List<android.net.Uri>,%20int,%20int,%20int))`(`[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> uris, int pid, int uid, int modeFlags) ` Determine whether a particular process and user ID has been granted permission to access a list of URIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                             | ` `[clearWallpaper](https://developer.android.com/reference/android/content/ContextWrapper#clearWallpaper())`() ` *This method is deprecated. Use[WallpaperManager.clear()](https://developer.android.com/reference/android/app/WallpaperManager#clear())instead.* *This method requires the caller to hold the permission[Manifest.permission.SET_WALLPAPER](https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createAttributionContext](https://developer.android.com/reference/android/content/ContextWrapper#createAttributionContext(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` attributionTag) ` Return a new Context object for the current Context but attribute to a different tag.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createConfigurationContext](https://developer.android.com/reference/android/content/ContextWrapper#createConfigurationContext(android.content.res.Configuration))`(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration)` overrideConfiguration) ` Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createContext](https://developer.android.com/reference/android/content/ContextWrapper#createContext(android.content.ContextParams))`(`[ContextParams](https://developer.android.com/reference/android/content/ContextParams)` contextParams) ` Creates a context with specific properties and behaviors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createDeviceContext](https://developer.android.com/reference/android/content/ContextWrapper#createDeviceContext(int))`(int deviceId) ` Returns a new`Context`object from the current context but with device association given by the`deviceId`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createDeviceProtectedStorageContext](https://developer.android.com/reference/android/content/ContextWrapper#createDeviceProtectedStorageContext())`() ` Return a new Context object for the current Context but whose storage APIs are backed by device-protected storage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createDisplayContext](https://developer.android.com/reference/android/content/ContextWrapper#createDisplayContext(android.view.Display))`(`[Display](https://developer.android.com/reference/android/view/Display)` display) ` Returns a new`Context`object from the current context but with resources adjusted to match the metrics of`display`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createPackageContext](https://developer.android.com/reference/android/content/ContextWrapper#createPackageContext(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` packageName, int flags) ` Return a new Context object for the given application name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createWindowContext](https://developer.android.com/reference/android/content/ContextWrapper#createWindowContext(int,%20android.os.Bundle))`(int type, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Creates a Context for a non-activity window.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createWindowContext](https://developer.android.com/reference/android/content/ContextWrapper#createWindowContext(android.view.Display,%20int,%20android.os.Bundle))`(`[Display](https://developer.android.com/reference/android/view/Display)` display, int type, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Creates a`Context`for a non-[activity](https://developer.android.com/reference/android/app/Activity)window on the given[Display](https://developer.android.com/reference/android/view/Display).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` `[String[]](https://developer.android.com/reference/java/lang/String)                             | ` `[databaseList](https://developer.android.com/reference/android/content/ContextWrapper#databaseList())`() ` Returns an array of strings naming the private databases associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` boolean`                                                                                          | ` `[deleteDatabase](https://developer.android.com/reference/android/content/ContextWrapper#deleteDatabase(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Delete an existing private SQLiteDatabase associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                          | ` `[deleteFile](https://developer.android.com/reference/android/content/ContextWrapper#deleteFile(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Delete the given private file associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                          | ` `[deleteSharedPreferences](https://developer.android.com/reference/android/content/ContextWrapper#deleteSharedPreferences(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Delete an existing shared preferences file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                             | ` `[enforceCallingOrSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper#enforceCallingOrSelfPermission(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If neither you nor the calling process of an IPC you are handling has been granted a particular permission, throw a[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                             | ` `[enforceCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#enforceCallingOrSelfUriPermission(android.net.Uri,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the calling process of an IPC*or you* has not been granted permission to access a specific URI, throw[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                             | ` `[enforceCallingPermission](https://developer.android.com/reference/android/content/ContextWrapper#enforceCallingPermission(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the calling process of an IPC you are handling has not been granted a particular permission, throw a[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                             | ` `[enforceCallingUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#enforceCallingUriPermission(android.net.Uri,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the calling process and user ID has not been granted permission to access a specific URI, throw[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                             | ` `[enforcePermission](https://developer.android.com/reference/android/content/ContextWrapper#enforcePermission(java.lang.String,%20int,%20int,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, int pid, int uid, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the given permission is not allowed for a particular process and user ID running in the system, throw a[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                             | ` `[enforceUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#enforceUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, `[String](https://developer.android.com/reference/java/lang/String)` readPermission, `[String](https://developer.android.com/reference/java/lang/String)` writePermission, int pid, int uid, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` Enforce both a Uri and normal permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                             | ` `[enforceUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#enforceUriPermission(android.net.Uri,%20int,%20int,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int pid, int uid, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If a particular process and user ID has not been granted permission to access a specific URI, throw[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` `[String[]](https://developer.android.com/reference/java/lang/String)                             | ` `[fileList](https://developer.android.com/reference/android/content/ContextWrapper#fileList())`() ` Returns an array of strings naming the private files associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[getApplicationContext](https://developer.android.com/reference/android/content/ContextWrapper#getApplicationContext())`() ` Return the context of the single, global Application object of the current process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo)    | ` `[getApplicationInfo](https://developer.android.com/reference/android/content/ContextWrapper#getApplicationInfo())`() ` Return the full application info for this context's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[AssetManager](https://developer.android.com/reference/android/content/res/AssetManager)         | ` `[getAssets](https://developer.android.com/reference/android/content/ContextWrapper#getAssets())`() ` Returns an AssetManager instance for the application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[AttributionSource](https://developer.android.com/reference/android/content/AttributionSource)   | ` `[getAttributionSource](https://developer.android.com/reference/android/content/ContextWrapper#getAttributionSource())`() ` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[getBaseContext](https://developer.android.com/reference/android/content/ContextWrapper#getBaseContext())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getCacheDir](https://developer.android.com/reference/android/content/ContextWrapper#getCacheDir())`() ` Returns the absolute path to the application specific cache directory on the filesystem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[ClassLoader](https://developer.android.com/reference/java/lang/ClassLoader)                     | ` `[getClassLoader](https://developer.android.com/reference/android/content/ContextWrapper#getClassLoader())`() ` Return a class loader you can use to retrieve classes in this package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getCodeCacheDir](https://developer.android.com/reference/android/content/ContextWrapper#getCodeCacheDir())`() ` Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver)       | ` `[getContentResolver](https://developer.android.com/reference/android/content/ContextWrapper#getContentResolver())`() ` Return a ContentResolver instance for your application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getDataDir](https://developer.android.com/reference/android/content/ContextWrapper#getDataDir())`() ` Returns the absolute path to the directory on the filesystem where all private files belonging to this app are stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getDatabasePath](https://developer.android.com/reference/android/content/ContextWrapper#getDatabasePath(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Returns the absolute path on the filesystem where a database created with[openOrCreateDatabase(String, int, CursorFactory)](https://developer.android.com/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory))is stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` int`                                                                                              | ` `[getDeviceId](https://developer.android.com/reference/android/content/ContextWrapper#getDeviceId())`() ` Gets the device ID this context is associated with.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getDir](https://developer.android.com/reference/android/content/ContextWrapper#getDir(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode) ` Retrieve, creating if needed, a new directory in which the application can place its own custom data files.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Display](https://developer.android.com/reference/android/view/Display)                          | ` `[getDisplay](https://developer.android.com/reference/android/content/ContextWrapper#getDisplay())`() ` Get the display this context is associated with.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getExternalCacheDir](https://developer.android.com/reference/android/content/ContextWrapper#getExternalCacheDir())`() ` Returns absolute path to application-specific directory on the primary shared/external storage device where the application can place cache files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getExternalCacheDirs](https://developer.android.com/reference/android/content/ContextWrapper#getExternalCacheDirs())`() ` Returns absolute paths to application-specific directories on all shared/external storage devices where the application can place cache files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getExternalFilesDir](https://developer.android.com/reference/android/content/ContextWrapper#getExternalFilesDir(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` type) ` Returns the absolute path to the directory on the primary shared/external storage device where the application can place persistent files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getExternalFilesDirs](https://developer.android.com/reference/android/content/ContextWrapper#getExternalFilesDirs(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` type) ` Returns absolute paths to application-specific directories on all shared/external storage devices where the application can place persistent files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getExternalMediaDirs](https://developer.android.com/reference/android/content/ContextWrapper#getExternalMediaDirs())`() ` *This method is deprecated. These directories still exist and are scanned, but developers are encouraged to migrate to inserting content into a[MediaStore](https://developer.android.com/reference/android/provider/MediaStore)collection directly, as any app can contribute new media to[MediaStore](https://developer.android.com/reference/android/provider/MediaStore)with no permissions required, starting in[Build.VERSION_CODES.Q](https://developer.android.com/reference/android/os/Build.VERSION_CODES#Q).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getFileStreamPath](https://developer.android.com/reference/android/content/ContextWrapper#getFileStreamPath(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Returns the absolute path on the filesystem where a file created with[openFileOutput(String, int)](https://developer.android.com/reference/android/content/Context#openFileOutput(java.lang.String,%20int))is stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getFilesDir](https://developer.android.com/reference/android/content/ContextWrapper#getFilesDir())`() ` Returns the absolute path to the directory on the filesystem where files created with[openFileOutput(String, int)](https://developer.android.com/reference/android/content/Context#openFileOutput(java.lang.String,%20int))are stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)                | ` `[getMainExecutor](https://developer.android.com/reference/android/content/ContextWrapper#getMainExecutor())`() ` Return an[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)that will run enqueued tasks on the main thread associated with this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Looper](https://developer.android.com/reference/android/os/Looper)                              | ` `[getMainLooper](https://developer.android.com/reference/android/content/ContextWrapper#getMainLooper())`() ` Return the Looper for the main thread of the current process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getNoBackupFilesDir](https://developer.android.com/reference/android/content/ContextWrapper#getNoBackupFilesDir())`() ` Returns the absolute path to the directory on the filesystem similar to[getFilesDir()](https://developer.android.com/reference/android/content/Context#getFilesDir()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getObbDir](https://developer.android.com/reference/android/content/ContextWrapper#getObbDir())`() ` Return the primary shared/external storage directory where this application's OBB files (if there are any) can be found.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getObbDirs](https://developer.android.com/reference/android/content/ContextWrapper#getObbDirs())`() ` Returns absolute paths to application-specific directories on all shared/external storage devices where the application's OBB files (if there are any) can be found.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getPackageCodePath](https://developer.android.com/reference/android/content/ContextWrapper#getPackageCodePath())`() ` Return the full path to this context's primary Android package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager)      | ` `[getPackageManager](https://developer.android.com/reference/android/content/ContextWrapper#getPackageManager())`() ` Return PackageManager instance to find global package information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getPackageName](https://developer.android.com/reference/android/content/ContextWrapper#getPackageName())`() ` Return the name of this application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getPackageResourcePath](https://developer.android.com/reference/android/content/ContextWrapper#getPackageResourcePath())`() ` Return the full path to this context's primary Android package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[ContextParams](https://developer.android.com/reference/android/content/ContextParams)           | ` `[getParams](https://developer.android.com/reference/android/content/ContextWrapper#getParams())`() ` Return the set of parameters which this Context was created with, if it was created via[createContext(android.content.ContextParams)](https://developer.android.com/reference/android/content/Context#createContext(android.content.ContextParams)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[Resources](https://developer.android.com/reference/android/content/res/Resources)               | ` `[getResources](https://developer.android.com/reference/android/content/ContextWrapper#getResources())`() ` Returns a Resources instance for the application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences)   | ` `[getSharedPreferences](https://developer.android.com/reference/android/content/ContextWrapper#getSharedPreferences(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode) ` Retrieve and hold the contents of the preferences file 'name', returning a SharedPreferences through which you can retrieve and modify its values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                               | ` `[getSystemService](https://developer.android.com/reference/android/content/ContextWrapper#getSystemService(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Return the handle to a system-level service by name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getSystemServiceName](https://developer.android.com/reference/android/content/ContextWrapper#getSystemServiceName(java.lang.Class<?>))`(`[Class](https://developer.android.com/reference/java/lang/Class)`<?> serviceClass) ` Gets the name of the system-level service that is represented by the specified class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme)   | ` `[getTheme](https://developer.android.com/reference/android/content/ContextWrapper#getTheme())`() ` Return the Theme object associated with this Context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable)           | ` `[getWallpaper](https://developer.android.com/reference/android/content/ContextWrapper#getWallpaper())`() ` *This method is deprecated. Use[WallpaperManager.get()](https://developer.android.com/reference/android/app/WallpaperManager#getDrawable())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` int`                                                                                              | ` `[getWallpaperDesiredMinimumHeight](https://developer.android.com/reference/android/content/ContextWrapper#getWallpaperDesiredMinimumHeight())`() ` *This method is deprecated. Use[WallpaperManager.getDesiredMinimumHeight()](https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumHeight())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                              | ` `[getWallpaperDesiredMinimumWidth](https://developer.android.com/reference/android/content/ContextWrapper#getWallpaperDesiredMinimumWidth())`() ` *This method is deprecated. Use[WallpaperManager.getDesiredMinimumWidth()](https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumWidth())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                             | ` `[grantUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#grantUriPermission(java.lang.String,%20android.net.Uri,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` toPackage, `[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Grant permission to access a specific Uri to another package, regardless of whether that package has general permission to access the Uri's content provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                          | ` `[isDeviceProtectedStorage](https://developer.android.com/reference/android/content/ContextWrapper#isDeviceProtectedStorage())`() ` Indicates if the storage APIs of this Context are backed by device-protected storage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                          | ` `[isRestricted](https://developer.android.com/reference/android/content/ContextWrapper#isRestricted())`() ` Indicates whether this Context is restricted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                          | ` `[moveDatabaseFrom](https://developer.android.com/reference/android/content/ContextWrapper#moveDatabaseFrom(android.content.Context,%20java.lang.String))`(`[Context](https://developer.android.com/reference/android/content/Context)` sourceContext, `[String](https://developer.android.com/reference/java/lang/String)` name) ` Move an existing database file from the given source storage context to this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                          | ` `[moveSharedPreferencesFrom](https://developer.android.com/reference/android/content/ContextWrapper#moveSharedPreferencesFrom(android.content.Context,%20java.lang.String))`(`[Context](https://developer.android.com/reference/android/content/Context)` sourceContext, `[String](https://developer.android.com/reference/java/lang/String)` name) ` Move an existing shared preferences file from the given source storage context to this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[FileInputStream](https://developer.android.com/reference/java/io/FileInputStream)               | ` `[openFileInput](https://developer.android.com/reference/android/content/ContextWrapper#openFileInput(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Open a private file associated with this Context's application package for reading.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[FileOutputStream](https://developer.android.com/reference/java/io/FileOutputStream)             | ` `[openFileOutput](https://developer.android.com/reference/android/content/ContextWrapper#openFileOutput(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode) ` Open a private file associated with this Context's application package for writing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase) | ` `[openOrCreateDatabase](https://developer.android.com/reference/android/content/ContextWrapper#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory,%20android.database.DatabaseErrorHandler))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory)` factory, `[DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler)` errorHandler) ` Open a new private SQLiteDatabase associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase) | ` `[openOrCreateDatabase](https://developer.android.com/reference/android/content/ContextWrapper#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory)` factory) ` Open a new private SQLiteDatabase associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable)           | ` `[peekWallpaper](https://developer.android.com/reference/android/content/ContextWrapper#peekWallpaper())`() ` *This method is deprecated. Use[WallpaperManager.peek()](https://developer.android.com/reference/android/app/WallpaperManager#peekDrawable())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                             | ` `[registerComponentCallbacks](https://developer.android.com/reference/android/content/ContextWrapper#registerComponentCallbacks(android.content.ComponentCallbacks))`(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)` callback) ` Add a new[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)to the base application of the Context, which will be called at the same times as the ComponentCallbacks methods of activities and other components are called.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                             | ` `[registerDeviceIdChangeListener](https://developer.android.com/reference/android/content/ContextWrapper#registerDeviceIdChangeListener(java.util.concurrent.Executor,%20java.util.function.IntConsumer))`(`[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[IntConsumer](https://developer.android.com/reference/java/util/function/IntConsumer)` listener) ` Adds a new device ID changed listener to the`Context`, which will be called when the device association is changed by the system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter) ` Register a BroadcastReceiver to be run in the main activity thread.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20int))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter, int flags) ` Register to receive intent broadcasts, with the receiver optionally being exposed to Instant Apps.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler,%20int))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter, `[String](https://developer.android.com/reference/java/lang/String)` broadcastPermission, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int flags) ` Register to receive intent broadcasts, to run in the context of<var translate="no">scheduler</var>.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter, `[String](https://developer.android.com/reference/java/lang/String)` broadcastPermission, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler) ` Register to receive intent broadcasts, to run in the context of<var translate="no">scheduler</var>.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                             | ` `[removeStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#removeStickyBroadcast(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` *This method is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                             | ` `[removeStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper#removeStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` *This method is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                             | ` `[revokeSelfPermissionsOnKill](https://developer.android.com/reference/android/content/ContextWrapper#revokeSelfPermissionsOnKill(java.util.Collection<java.lang.String>))`(`[Collection](https://developer.android.com/reference/java/util/Collection)`<`[String](https://developer.android.com/reference/java/lang/String)`> permissions) ` Triggers the revocation of one or more permissions for the calling package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                             | ` `[revokeUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#revokeUriPermission(android.net.Uri,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Remove all permissions to access a particular content provider Uri that were previously added with[grantUriPermission(String, Uri, int)](https://developer.android.com/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int))or*any other*mechanism.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                             | ` `[revokeUriPermission](https://developer.android.com/reference/android/content/ContextWrapper#revokeUriPermission(java.lang.String,%20android.net.Uri,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` targetPackage, `[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Remove permissions to access a particular content provider Uri that were previously added with[grantUriPermission(String, Uri, int)](https://developer.android.com/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int))for a specific target package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                             | ` `[sendBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                             | ` `[sendBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendBroadcast(android.content.Intent,%20java.lang.String))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission) ` Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                             | ` `[sendBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendBroadcast(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Broadcast the given intent to all interested BroadcastReceivers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                             | ` `[sendBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` Version of[sendBroadcast(android.content.Intent)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent))that allows you to specify the user the broadcast will be sent to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                             | ` `[sendBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission) ` Version of[sendBroadcast(android.content.Intent, java.lang.String)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String))that allows you to specify the user the broadcast will be sent to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[String](https://developer.android.com/reference/java/lang/String)` receiverAppOp, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))that allows you to specify the App Op to enforce restrictions on which receivers the broadcast will be sent to. | | ` void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20int,%20java.lang.String,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20java.lang.String,%20android.os.Bundle,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[String](https://developer.android.com/reference/java/lang/String)` receiverAppOp, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` <br />                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendBroadcast(android.content.Intent)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent))that allows you to receive data back from the broadcast.                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Broadcast the given intent to all interested BroadcastReceivers, delivering them one at a time to allow more preferred receivers to consume the broadcast before it is delivered to less preferred receivers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendBroadcast(android.content.Intent)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent))that allows you to receive data back from the broadcast.                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission) ` Broadcast the given intent to all interested BroadcastReceivers, delivering them one at a time to allow more preferred receivers to consume the broadcast before it is delivered to less preferred receivers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                             | ` `[sendOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper#sendOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))that allows you to specify the user the broadcast will be sent to.                             | | ` void`                                                                                             | ` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendStickyBroadcast(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` *This method is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                             | ` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendStickyBroadcast(android.content.Intent,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` *This method is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                             | ` `[sendStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper#sendStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` *This method is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                             | ` `[sendStickyOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper#sendStickyOrderedBroadcast(android.content.Intent,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` *This method is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                             | ` `[sendStickyOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper#sendStickyOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` *This method is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                   | | ` void`                                                                                             | ` `[setTheme](https://developer.android.com/reference/android/content/ContextWrapper#setTheme(int))`(int resid) ` Set the base theme for this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                             | ` `[setWallpaper](https://developer.android.com/reference/android/content/ContextWrapper#setWallpaper(android.graphics.Bitmap))`(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap)` bitmap) ` *This method is deprecated. Use[WallpaperManager.set()](https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap))instead.* *This method requires the caller to hold the permission[Manifest.permission.SET_WALLPAPER](https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                             | ` `[setWallpaper](https://developer.android.com/reference/android/content/ContextWrapper#setWallpaper(java.io.InputStream))`(`[InputStream](https://developer.android.com/reference/java/io/InputStream)` data) ` *This method is deprecated. Use[WallpaperManager.set()](https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream))instead.* *This method requires the caller to hold the permission[Manifest.permission.SET_WALLPAPER](https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                             | ` `[startActivities](https://developer.android.com/reference/android/content/ContextWrapper#startActivities(android.content.Intent[],%20android.os.Bundle))`(`[Intent[]](https://developer.android.com/reference/android/content/Intent)` intents, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Launch multiple new activities.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                             | ` `[startActivities](https://developer.android.com/reference/android/content/ContextWrapper#startActivities(android.content.Intent[]))`(`[Intent[]](https://developer.android.com/reference/android/content/Intent)` intents) ` Same as[startActivities(android.content.Intent[], android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startActivities(android.content.Intent[],%20android.os.Bundle))with no options specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                             | ` `[startActivity](https://developer.android.com/reference/android/content/ContextWrapper#startActivity(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Same as[startActivity(android.content.Intent, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle))with no options specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                             | ` `[startActivity](https://developer.android.com/reference/android/content/ContextWrapper#startActivity(android.content.Intent,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Launch a new activity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName)           | ` `[startForegroundService](https://developer.android.com/reference/android/content/ContextWrapper#startForegroundService(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service) ` Similar to[startService(android.content.Intent)](https://developer.android.com/reference/android/content/Context#startService(android.content.Intent)), but with an implicit promise that the Service will call[startForeground(int, android.app.Notification)](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))once it begins running.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                          | ` `[startInstrumentation](https://developer.android.com/reference/android/content/ContextWrapper#startInstrumentation(android.content.ComponentName,%20java.lang.String,%20android.os.Bundle))`(`[ComponentName](https://developer.android.com/reference/android/content/ComponentName)` className, `[String](https://developer.android.com/reference/java/lang/String)` profileFile, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` arguments) ` Start executing an[Instrumentation](https://developer.android.com/reference/android/app/Instrumentation)class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                             | ` `[startIntentSender](https://developer.android.com/reference/android/content/ContextWrapper#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int))`(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender)` intent, `[Intent](https://developer.android.com/reference/android/content/Intent)` fillInIntent, int flagsMask, int flagsValues, int extraFlags) ` Same as[startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle))with no options specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                             | ` `[startIntentSender](https://developer.android.com/reference/android/content/ContextWrapper#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle))`(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender)` intent, `[Intent](https://developer.android.com/reference/android/content/Intent)` fillInIntent, int flagsMask, int flagsValues, int extraFlags, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Like[startActivity(android.content.Intent, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle)), but taking a IntentSender to start.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName)           | ` `[startService](https://developer.android.com/reference/android/content/ContextWrapper#startService(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service) ` Request that a given application service be started.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` boolean`                                                                                          | ` `[stopService](https://developer.android.com/reference/android/content/ContextWrapper#stopService(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` name) ` Request that a given application service be stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                             | ` `[unbindService](https://developer.android.com/reference/android/content/ContextWrapper#unbindService(android.content.ServiceConnection))`(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` Disconnect from an application service.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                             | ` `[unregisterComponentCallbacks](https://developer.android.com/reference/android/content/ContextWrapper#unregisterComponentCallbacks(android.content.ComponentCallbacks))`(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)` callback) ` Remove a[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)object that was previously registered with[registerComponentCallbacks(android.content.ComponentCallbacks)](https://developer.android.com/reference/android/content/ContextWrapper#registerComponentCallbacks(android.content.ComponentCallbacks)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                             | ` `[unregisterDeviceIdChangeListener](https://developer.android.com/reference/android/content/ContextWrapper#unregisterDeviceIdChangeListener(java.util.function.IntConsumer))`(`[IntConsumer](https://developer.android.com/reference/java/util/function/IntConsumer)` listener) ` Removes a device ID changed listener from the Context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                             | ` `[unregisterReceiver](https://developer.android.com/reference/android/content/ContextWrapper#unregisterReceiver(android.content.BroadcastReceiver))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver) ` Unregister a previously registered BroadcastReceiver.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                             | ` `[updateServiceGroup](https://developer.android.com/reference/android/content/ContextWrapper#updateServiceGroup(android.content.ServiceConnection,%20int,%20int))`(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, int group, int importance) ` For a service previously bound with[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))or a related method, change how the system manages that service's process in relation to other processes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | ||
| From class` `[android.content.Context](https://developer.android.com/reference/android/content/Context)` ` |--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` boolean`                                                                                                   | ` `[bindIsolatedService](https://developer.android.com/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20int,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, int flags, `[String](https://developer.android.com/reference/java/lang/String)` instanceName, `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` Variation of[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))that, in the specific case of isolated services, allows the caller to generate multiple instances of a service from a single component declaration.                                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                   | ` `[bindIsolatedService](https://developer.android.com/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[Context.BindServiceFlags](https://developer.android.com/reference/android/content/Context.BindServiceFlags)` flags, `[String](https://developer.android.com/reference/java/lang/String)` instanceName, `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` See[bindIsolatedService(android.content.Intent, int, java.lang.String, java.util.concurrent.Executor, android.content.ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20int,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))Call[BindServiceFlags#of(long)](https://developer.android.com/reference/android/content/Context.BindServiceFlags#of(long))to obtain a BindServiceFlags object.                                                                                                                                                                                            | | ` boolean`                                                                                                   | ` `[bindService](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, int flags, `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` Same as[bindService(Intent, ServiceConnection, int)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int))with executor to control ServiceConnection callbacks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                                   | ` `[bindService](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20android.content.Context.BindServiceFlags))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, `[Context.BindServiceFlags](https://developer.android.com/reference/android/content/Context.BindServiceFlags)` flags) ` See[bindService(android.content.Intent, android.content.ServiceConnection, int)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int))Call[BindServiceFlags#of(long)](https://developer.android.com/reference/android/content/Context.BindServiceFlags#of(long))to obtain a BindServiceFlags object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract boolean`                                                                                          | ` `[bindService](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, int flags) ` Connects to an application service, creating it if needed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` boolean`                                                                                                   | ` `[bindService](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[Context.BindServiceFlags](https://developer.android.com/reference/android/content/Context.BindServiceFlags)` flags, `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` See[bindService(android.content.Intent, int, java.util.concurrent.Executor, android.content.ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))Call[BindServiceFlags#of(long)](https://developer.android.com/reference/android/content/Context.BindServiceFlags#of(long))to obtain a BindServiceFlags object.                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                                   | ` `[bindServiceAsUser](https://developer.android.com/reference/android/content/Context#bindServiceAsUser(android.content.Intent,%20android.content.ServiceConnection,%20int,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, int flags, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` Binds to a service in the given`user`in the same manner as[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                   | ` `[bindServiceAsUser](https://developer.android.com/reference/android/content/Context#bindServiceAsUser(android.content.Intent,%20android.content.ServiceConnection,%20android.content.Context.BindServiceFlags,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, `[Context.BindServiceFlags](https://developer.android.com/reference/android/content/Context.BindServiceFlags)` flags, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` See[bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle)](https://developer.android.com/reference/android/content/Context#bindServiceAsUser(android.content.Intent,%20android.content.ServiceConnection,%20int,%20android.os.UserHandle))Call[BindServiceFlags#of(long)](https://developer.android.com/reference/android/content/Context.BindServiceFlags#of(long))to obtain a BindServiceFlags object.                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract int`                                                                                              | ` `[checkCallingOrSelfPermission](https://developer.android.com/reference/android/content/Context#checkCallingOrSelfPermission(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission) ` Determine whether the calling process of an IPC*or you*have been granted a particular permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract int`                                                                                              | ` `[checkCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/Context#checkCallingOrSelfUriPermission(android.net.Uri,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Determine whether the calling process of an IPC*or you*has been granted permission to access a specific URI.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` int[]`                                                                                                     | ` `[checkCallingOrSelfUriPermissions](https://developer.android.com/reference/android/content/Context#checkCallingOrSelfUriPermissions(java.util.List<android.net.Uri>,%20int))`(`[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> uris, int modeFlags) ` Determine whether the calling process of an IPC*or you*has been granted permission to access a list of URIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract int`                                                                                              | ` `[checkCallingPermission](https://developer.android.com/reference/android/content/Context#checkCallingPermission(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission) ` Determine whether the calling process of an IPC you are handling has been granted a particular permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract int`                                                                                              | ` `[checkCallingUriPermission](https://developer.android.com/reference/android/content/Context#checkCallingUriPermission(android.net.Uri,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Determine whether the calling process and user ID has been granted permission to access a specific URI.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` int[]`                                                                                                     | ` `[checkCallingUriPermissions](https://developer.android.com/reference/android/content/Context#checkCallingUriPermissions(java.util.List<android.net.Uri>,%20int))`(`[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> uris, int modeFlags) ` Determine whether the calling process and user ID has been granted permission to access a list of URIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract int`                                                                                              | ` `[checkPermission](https://developer.android.com/reference/android/content/Context#checkPermission(java.lang.String,%20int,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, int pid, int uid) ` Determine whether the given permission is allowed for a particular process and user ID running in the system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract int`                                                                                              | ` `[checkSelfPermission](https://developer.android.com/reference/android/content/Context#checkSelfPermission(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission) ` Determine whether*you*have been granted a particular permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract int`                                                                                              | ` `[checkUriPermission](https://developer.android.com/reference/android/content/Context#checkUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, `[String](https://developer.android.com/reference/java/lang/String)` readPermission, `[String](https://developer.android.com/reference/java/lang/String)` writePermission, int pid, int uid, int modeFlags) ` Check both a Uri and normal permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract int`                                                                                              | ` `[checkUriPermission](https://developer.android.com/reference/android/content/Context#checkUriPermission(android.net.Uri,%20int,%20int,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int pid, int uid, int modeFlags) ` Determine whether a particular process and user ID has been granted permission to access a specific URI.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int[]`                                                                                                     | ` `[checkUriPermissions](https://developer.android.com/reference/android/content/Context#checkUriPermissions(java.util.List<android.net.Uri>,%20int,%20int,%20int))`(`[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> uris, int pid, int uid, int modeFlags) ` Determine whether a particular process and user ID has been granted permission to access a list of URIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract void`                                                                                             | ` `[clearWallpaper](https://developer.android.com/reference/android/content/Context#clearWallpaper())`() ` *This method was deprecated in API level 15. Use[WallpaperManager.clear()](https://developer.android.com/reference/android/app/WallpaperManager#clear())instead.* *This method requires the caller to hold the permission[Manifest.permission.SET_WALLPAPER](https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Context](https://developer.android.com/reference/android/content/Context)                                | ` `[createAttributionContext](https://developer.android.com/reference/android/content/Context#createAttributionContext(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` attributionTag) ` Return a new Context object for the current Context but attribute to a different tag.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createConfigurationContext](https://developer.android.com/reference/android/content/Context#createConfigurationContext(android.content.res.Configuration))`(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration)` overrideConfiguration) ` Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Context](https://developer.android.com/reference/android/content/Context)                                | ` `[createContext](https://developer.android.com/reference/android/content/Context#createContext(android.content.ContextParams))`(`[ContextParams](https://developer.android.com/reference/android/content/ContextParams)` contextParams) ` Creates a context with specific properties and behaviors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createContextForSplit](https://developer.android.com/reference/android/content/Context#createContextForSplit(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` splitName) ` Return a new Context object for the given split name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Context](https://developer.android.com/reference/android/content/Context)                                | ` `[createDeviceContext](https://developer.android.com/reference/android/content/Context#createDeviceContext(int))`(int deviceId) ` Returns a new`Context`object from the current context but with device association given by the`deviceId`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createDeviceProtectedStorageContext](https://developer.android.com/reference/android/content/Context#createDeviceProtectedStorageContext())`() ` Return a new Context object for the current Context but whose storage APIs are backed by device-protected storage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createDisplayContext](https://developer.android.com/reference/android/content/Context#createDisplayContext(android.view.Display))`(`[Display](https://developer.android.com/reference/android/view/Display)` display) ` Returns a new`Context`object from the current context but with resources adjusted to match the metrics of`display`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[createPackageContext](https://developer.android.com/reference/android/content/Context#createPackageContext(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` packageName, int flags) ` Return a new Context object for the given application name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Context](https://developer.android.com/reference/android/content/Context)                                | ` `[createWindowContext](https://developer.android.com/reference/android/content/Context#createWindowContext(int,%20android.os.Bundle))`(int type, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Creates a Context for a non-activity window.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Context](https://developer.android.com/reference/android/content/Context)                                | ` `[createWindowContext](https://developer.android.com/reference/android/content/Context#createWindowContext(android.view.Display,%20int,%20android.os.Bundle))`(`[Display](https://developer.android.com/reference/android/view/Display)` display, int type, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Creates a`Context`for a non-[activity](https://developer.android.com/reference/android/app/Activity)window on the given[Display](https://developer.android.com/reference/android/view/Display).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract `[String[]](https://developer.android.com/reference/java/lang/String)                             | ` `[databaseList](https://developer.android.com/reference/android/content/Context#databaseList())`() ` Returns an array of strings naming the private databases associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract boolean`                                                                                          | ` `[deleteDatabase](https://developer.android.com/reference/android/content/Context#deleteDatabase(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Delete an existing private SQLiteDatabase associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract boolean`                                                                                          | ` `[deleteFile](https://developer.android.com/reference/android/content/Context#deleteFile(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Delete the given private file associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract boolean`                                                                                          | ` `[deleteSharedPreferences](https://developer.android.com/reference/android/content/Context#deleteSharedPreferences(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Delete an existing shared preferences file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract void`                                                                                             | ` `[enforceCallingOrSelfPermission](https://developer.android.com/reference/android/content/Context#enforceCallingOrSelfPermission(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If neither you nor the calling process of an IPC you are handling has been granted a particular permission, throw a[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract void`                                                                                             | ` `[enforceCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/Context#enforceCallingOrSelfUriPermission(android.net.Uri,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the calling process of an IPC*or you* has not been granted permission to access a specific URI, throw[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract void`                                                                                             | ` `[enforceCallingPermission](https://developer.android.com/reference/android/content/Context#enforceCallingPermission(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the calling process of an IPC you are handling has not been granted a particular permission, throw a[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                             | ` `[enforceCallingUriPermission](https://developer.android.com/reference/android/content/Context#enforceCallingUriPermission(android.net.Uri,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the calling process and user ID has not been granted permission to access a specific URI, throw[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                             | ` `[enforcePermission](https://developer.android.com/reference/android/content/Context#enforcePermission(java.lang.String,%20int,%20int,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permission, int pid, int uid, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If the given permission is not allowed for a particular process and user ID running in the system, throw a[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract void`                                                                                             | ` `[enforceUriPermission](https://developer.android.com/reference/android/content/Context#enforceUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, `[String](https://developer.android.com/reference/java/lang/String)` readPermission, `[String](https://developer.android.com/reference/java/lang/String)` writePermission, int pid, int uid, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` Enforce both a Uri and normal permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract void`                                                                                             | ` `[enforceUriPermission](https://developer.android.com/reference/android/content/Context#enforceUriPermission(android.net.Uri,%20int,%20int,%20int,%20java.lang.String))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int pid, int uid, int modeFlags, `[String](https://developer.android.com/reference/java/lang/String)` message) ` If a particular process and user ID has not been granted permission to access a specific URI, throw[SecurityException](https://developer.android.com/reference/java/lang/SecurityException).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract `[String[]](https://developer.android.com/reference/java/lang/String)                             | ` `[fileList](https://developer.android.com/reference/android/content/Context#fileList())`() ` Returns an array of strings naming the private files associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context)                       | ` `[getApplicationContext](https://developer.android.com/reference/android/content/Context#getApplicationContext())`() ` Return the context of the single, global Application object of the current process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo)    | ` `[getApplicationInfo](https://developer.android.com/reference/android/content/Context#getApplicationInfo())`() ` Return the full application info for this context's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract `[AssetManager](https://developer.android.com/reference/android/content/res/AssetManager)         | ` `[getAssets](https://developer.android.com/reference/android/content/Context#getAssets())`() ` Returns an AssetManager instance for the application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[AttributionSource](https://developer.android.com/reference/android/content/AttributionSource)            | ` `[getAttributionSource](https://developer.android.com/reference/android/content/Context#getAttributionSource())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String)                                        | ` `[getAttributionTag](https://developer.android.com/reference/android/content/Context#getAttributionTag())`() ` <br /> Attribution can be used in complex apps to logically separate parts of the app.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getCacheDir](https://developer.android.com/reference/android/content/Context#getCacheDir())`() ` Returns the absolute path to the application specific cache directory on the filesystem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract `[ClassLoader](https://developer.android.com/reference/java/lang/ClassLoader)                     | ` `[getClassLoader](https://developer.android.com/reference/android/content/Context#getClassLoader())`() ` Return a class loader you can use to retrieve classes in this package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getCodeCacheDir](https://developer.android.com/reference/android/content/Context#getCodeCacheDir())`() ` Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` final int`                                                                                                 | ` `[getColor](https://developer.android.com/reference/android/content/Context#getColor(int))`(int id) ` Returns a color associated with a particular resource ID and styled for the current theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` final `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList)        | ` `[getColorStateList](https://developer.android.com/reference/android/content/Context#getColorStateList(int))`(int id) ` Returns a color state list associated with a particular resource ID and styled for the current theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract `[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver)       | ` `[getContentResolver](https://developer.android.com/reference/android/content/Context#getContentResolver())`() ` Return a ContentResolver instance for your application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getDataDir](https://developer.android.com/reference/android/content/Context#getDataDir())`() ` Returns the absolute path to the directory on the filesystem where all private files belonging to this app are stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getDatabasePath](https://developer.android.com/reference/android/content/Context#getDatabasePath(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Returns the absolute path on the filesystem where a database created with[openOrCreateDatabase(String, int, CursorFactory)](https://developer.android.com/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory))is stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` int`                                                                                                       | ` `[getDeviceId](https://developer.android.com/reference/android/content/Context#getDeviceId())`() ` Gets the device ID this context is associated with.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getDir](https://developer.android.com/reference/android/content/Context#getDir(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode) ` Retrieve, creating if needed, a new directory in which the application can place its own custom data files.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Display](https://developer.android.com/reference/android/view/Display)                                   | ` `[getDisplay](https://developer.android.com/reference/android/content/Context#getDisplay())`() ` Get the display this context is associated with.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` final `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable)              | ` `[getDrawable](https://developer.android.com/reference/android/content/Context#getDrawable(int))`(int id) ` Returns a drawable object associated with a particular resource ID and styled for the current theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getExternalCacheDir](https://developer.android.com/reference/android/content/Context#getExternalCacheDir())`() ` Returns absolute path to application-specific directory on the primary shared/external storage device where the application can place cache files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getExternalCacheDirs](https://developer.android.com/reference/android/content/Context#getExternalCacheDirs())`() ` Returns absolute paths to application-specific directories on all shared/external storage devices where the application can place cache files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getExternalFilesDir](https://developer.android.com/reference/android/content/Context#getExternalFilesDir(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` type) ` Returns the absolute path to the directory on the primary shared/external storage device where the application can place persistent files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getExternalFilesDirs](https://developer.android.com/reference/android/content/Context#getExternalFilesDirs(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` type) ` Returns absolute paths to application-specific directories on all shared/external storage devices where the application can place persistent files it owns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getExternalMediaDirs](https://developer.android.com/reference/android/content/Context#getExternalMediaDirs())`() ` *This method was deprecated in API level 30. These directories still exist and are scanned, but developers are encouraged to migrate to inserting content into a[MediaStore](https://developer.android.com/reference/android/provider/MediaStore)collection directly, as any app can contribute new media to[MediaStore](https://developer.android.com/reference/android/provider/MediaStore)with no permissions required, starting in[Build.VERSION_CODES.Q](https://developer.android.com/reference/android/os/Build.VERSION_CODES#Q).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getFileStreamPath](https://developer.android.com/reference/android/content/Context#getFileStreamPath(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Returns the absolute path on the filesystem where a file created with[openFileOutput(String, int)](https://developer.android.com/reference/android/content/Context#openFileOutput(java.lang.String,%20int))is stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getFilesDir](https://developer.android.com/reference/android/content/Context#getFilesDir())`() ` Returns the absolute path to the directory on the filesystem where files created with[openFileOutput(String, int)](https://developer.android.com/reference/android/content/Context#openFileOutput(java.lang.String,%20int))are stored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)                         | ` `[getMainExecutor](https://developer.android.com/reference/android/content/Context#getMainExecutor())`() ` Return an[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)that will run enqueued tasks on the main thread associated with this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract `[Looper](https://developer.android.com/reference/android/os/Looper)                              | ` `[getMainLooper](https://developer.android.com/reference/android/content/Context#getMainLooper())`() ` Return the Looper for the main thread of the current process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getNoBackupFilesDir](https://developer.android.com/reference/android/content/Context#getNoBackupFilesDir())`() ` Returns the absolute path to the directory on the filesystem similar to[getFilesDir()](https://developer.android.com/reference/android/content/Context#getFilesDir()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract `[File](https://developer.android.com/reference/java/io/File)                                     | ` `[getObbDir](https://developer.android.com/reference/android/content/Context#getObbDir())`() ` Return the primary shared/external storage directory where this application's OBB files (if there are any) can be found.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[File[]](https://developer.android.com/reference/java/io/File)                                   | ` `[getObbDirs](https://developer.android.com/reference/android/content/Context#getObbDirs())`() ` Returns absolute paths to application-specific directories on all shared/external storage devices where the application's OBB files (if there are any) can be found.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[String](https://developer.android.com/reference/java/lang/String)                                        | ` `[getOpPackageName](https://developer.android.com/reference/android/content/Context#getOpPackageName())`() ` Return the package name that should be used for[AppOpsManager](https://developer.android.com/reference/android/app/AppOpsManager)calls from this context, so that app ops manager's uid verification will work with the name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getPackageCodePath](https://developer.android.com/reference/android/content/Context#getPackageCodePath())`() ` Return the full path to this context's primary Android package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract `[PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager)      | ` `[getPackageManager](https://developer.android.com/reference/android/content/Context#getPackageManager())`() ` Return PackageManager instance to find global package information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getPackageName](https://developer.android.com/reference/android/content/Context#getPackageName())`() ` Return the name of this application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getPackageResourcePath](https://developer.android.com/reference/android/content/Context#getPackageResourcePath())`() ` Return the full path to this context's primary Android package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[ContextParams](https://developer.android.com/reference/android/content/ContextParams)                    | ` `[getParams](https://developer.android.com/reference/android/content/Context#getParams())`() ` Return the set of parameters which this Context was created with, if it was created via[createContext(android.content.ContextParams)](https://developer.android.com/reference/android/content/Context#createContext(android.content.ContextParams)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[Resources](https://developer.android.com/reference/android/content/res/Resources)               | ` `[getResources](https://developer.android.com/reference/android/content/Context#getResources())`() ` Returns a Resources instance for the application's package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract `[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences)   | ` `[getSharedPreferences](https://developer.android.com/reference/android/content/Context#getSharedPreferences(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode) ` Retrieve and hold the contents of the preferences file 'name', returning a SharedPreferences through which you can retrieve and modify its values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` final `[String](https://developer.android.com/reference/java/lang/String)                                  | ` `[getString](https://developer.android.com/reference/android/content/Context#getString(int))`(int resId) ` Returns a localized string from the application's package's default string table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` final `[String](https://developer.android.com/reference/java/lang/String)                                  | ` `[getString](https://developer.android.com/reference/android/content/Context#getString(int,%20java.lang.Object[]))`(int resId, `[Object...](https://developer.android.com/reference/java/lang/Object)` formatArgs) ` Returns a localized formatted string from the application's package's default string table, substituting the format arguments as defined in[Formatter](https://developer.android.com/reference/java/util/Formatter)and[String.format(String, Object)](https://developer.android.com/reference/java/lang/String#format(java.lang.String,%20java.lang.Object[])).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` final <T> T`                                                                                               | ` `[getSystemService](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.Class<T>))`(`[Class](https://developer.android.com/reference/java/lang/Class)`<T> serviceClass) ` Return the handle to a system-level service by class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[Object](https://developer.android.com/reference/java/lang/Object)                               | ` `[getSystemService](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Return the handle to a system-level service by name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[String](https://developer.android.com/reference/java/lang/String)                               | ` `[getSystemServiceName](https://developer.android.com/reference/android/content/Context#getSystemServiceName(java.lang.Class<?>))`(`[Class](https://developer.android.com/reference/java/lang/Class)`<?> serviceClass) ` Gets the name of the system-level service that is represented by the specified class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` final `[CharSequence](https://developer.android.com/reference/java/lang/CharSequence)                      | ` `[getText](https://developer.android.com/reference/android/content/Context#getText(int))`(int resId) ` Return a localized, styled CharSequence from the application's package's default string table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme)   | ` `[getTheme](https://developer.android.com/reference/android/content/Context#getTheme())`() ` Return the Theme object associated with this Context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable)           | ` `[getWallpaper](https://developer.android.com/reference/android/content/Context#getWallpaper())`() ` *This method was deprecated in API level 15. Use[WallpaperManager.get()](https://developer.android.com/reference/android/app/WallpaperManager#getDrawable())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract int`                                                                                              | ` `[getWallpaperDesiredMinimumHeight](https://developer.android.com/reference/android/content/Context#getWallpaperDesiredMinimumHeight())`() ` *This method was deprecated in API level 15. Use[WallpaperManager.getDesiredMinimumHeight()](https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumHeight())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract int`                                                                                              | ` `[getWallpaperDesiredMinimumWidth](https://developer.android.com/reference/android/content/Context#getWallpaperDesiredMinimumWidth())`() ` *This method was deprecated in API level 15. Use[WallpaperManager.getDesiredMinimumWidth()](https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumWidth())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                             | ` `[grantUriPermission](https://developer.android.com/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` toPackage, `[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Grant permission to access a specific Uri to another package, regardless of whether that package has general permission to access the Uri's content provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract boolean`                                                                                          | ` `[isDeviceProtectedStorage](https://developer.android.com/reference/android/content/Context#isDeviceProtectedStorage())`() ` Indicates if the storage APIs of this Context are backed by device-protected storage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                                   | ` `[isRestricted](https://developer.android.com/reference/android/content/Context#isRestricted())`() ` Indicates whether this Context is restricted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                                   | ` `[isUiContext](https://developer.android.com/reference/android/content/Context#isUiContext())`() ` Returns`true`if the context is a UI context which can access UI components such as[WindowManager](https://developer.android.com/reference/android/view/WindowManager),[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater)or[WallpaperManager](https://developer.android.com/reference/android/app/WallpaperManager).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract boolean`                                                                                          | ` `[moveDatabaseFrom](https://developer.android.com/reference/android/content/Context#moveDatabaseFrom(android.content.Context,%20java.lang.String))`(`[Context](https://developer.android.com/reference/android/content/Context)` sourceContext, `[String](https://developer.android.com/reference/java/lang/String)` name) ` Move an existing database file from the given source storage context to this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract boolean`                                                                                          | ` `[moveSharedPreferencesFrom](https://developer.android.com/reference/android/content/Context#moveSharedPreferencesFrom(android.content.Context,%20java.lang.String))`(`[Context](https://developer.android.com/reference/android/content/Context)` sourceContext, `[String](https://developer.android.com/reference/java/lang/String)` name) ` Move an existing shared preferences file from the given source storage context to this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray)                | ` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context#obtainStyledAttributes(android.util.AttributeSet,%20int[]))`(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet)` set, int[] attrs) ` Retrieve styled attribute information in this Context's theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray)                | ` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context#obtainStyledAttributes(android.util.AttributeSet,%20int[],%20int,%20int))`(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet)` set, int[] attrs, int defStyleAttr, int defStyleRes) ` Retrieve styled attribute information in this Context's theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray)                | ` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context#obtainStyledAttributes(int,%20int[]))`(int resid, int[] attrs) ` Retrieve styled attribute information in this Context's theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray)                | ` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context#obtainStyledAttributes(int[]))`(int[] attrs) ` Retrieve styled attribute information in this Context's theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[FileInputStream](https://developer.android.com/reference/java/io/FileInputStream)               | ` `[openFileInput](https://developer.android.com/reference/android/content/Context#openFileInput(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Open a private file associated with this Context's application package for reading.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[FileOutputStream](https://developer.android.com/reference/java/io/FileOutputStream)             | ` `[openFileOutput](https://developer.android.com/reference/android/content/Context#openFileOutput(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode) ` Open a private file associated with this Context's application package for writing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase) | ` `[openOrCreateDatabase](https://developer.android.com/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory,%20android.database.DatabaseErrorHandler))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory)` factory, `[DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler)` errorHandler) ` Open a new private SQLiteDatabase associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase) | ` `[openOrCreateDatabase](https://developer.android.com/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory))`(`[String](https://developer.android.com/reference/java/lang/String)` name, int mode, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory)` factory) ` Open a new private SQLiteDatabase associated with this Context's application package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable)           | ` `[peekWallpaper](https://developer.android.com/reference/android/content/Context#peekWallpaper())`() ` *This method was deprecated in API level 15. Use[WallpaperManager.peek()](https://developer.android.com/reference/android/app/WallpaperManager#peekDrawable())instead.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                      | ` `[registerComponentCallbacks](https://developer.android.com/reference/android/content/Context#registerComponentCallbacks(android.content.ComponentCallbacks))`(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)` callback) ` Add a new[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)to the base application of the Context, which will be called at the same times as the ComponentCallbacks methods of activities and other components are called.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                      | ` `[registerDeviceIdChangeListener](https://developer.android.com/reference/android/content/Context#registerDeviceIdChangeListener(java.util.concurrent.Executor,%20java.util.function.IntConsumer))`(`[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[IntConsumer](https://developer.android.com/reference/java/util/function/IntConsumer)` listener) ` Adds a new device ID changed listener to the`Context`, which will be called when the device association is changed by the system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter) ` Register a BroadcastReceiver to be run in the main activity thread.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20int))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter, int flags) ` Register to receive intent broadcasts, with the receiver optionally being exposed to Instant Apps.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler,%20int))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter, `[String](https://developer.android.com/reference/java/lang/String)` broadcastPermission, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int flags) ` Register to receive intent broadcasts, to run in the context of<var translate="no">scheduler</var>.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent)                         | ` `[registerReceiver](https://developer.android.com/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter)` filter, `[String](https://developer.android.com/reference/java/lang/String)` broadcastPermission, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler) ` Register to receive intent broadcasts, to run in the context of<var translate="no">scheduler</var>.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract void`                                                                                             | ` `[removeStickyBroadcast](https://developer.android.com/reference/android/content/Context#removeStickyBroadcast(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` *This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                             | ` `[removeStickyBroadcastAsUser](https://developer.android.com/reference/android/content/Context#removeStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` *This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                      | ` `[revokeSelfPermissionOnKill](https://developer.android.com/reference/android/content/Context#revokeSelfPermissionOnKill(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` permName) ` Triggers the asynchronous revocation of a runtime permission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                      | ` `[revokeSelfPermissionsOnKill](https://developer.android.com/reference/android/content/Context#revokeSelfPermissionsOnKill(java.util.Collection<java.lang.String>))`(`[Collection](https://developer.android.com/reference/java/util/Collection)`<`[String](https://developer.android.com/reference/java/lang/String)`> permissions) ` Triggers the revocation of one or more permissions for the calling package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract void`                                                                                             | ` `[revokeUriPermission](https://developer.android.com/reference/android/content/Context#revokeUriPermission(android.net.Uri,%20int))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Remove all permissions to access a particular content provider Uri that were previously added with[grantUriPermission(String, Uri, int)](https://developer.android.com/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int))or*any other*mechanism.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract void`                                                                                             | ` `[revokeUriPermission](https://developer.android.com/reference/android/content/Context#revokeUriPermission(java.lang.String,%20android.net.Uri,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` toPackage, `[Uri](https://developer.android.com/reference/android/net/Uri)` uri, int modeFlags) ` Remove permissions to access a particular content provider Uri that were previously added with[grantUriPermission(String, Uri, int)](https://developer.android.com/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int))for a specific target package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                      | ` `[sendBroadcast](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract void`                                                                                             | ` `[sendBroadcast](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission) ` Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                             | ` `[sendBroadcast](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Broadcast the given intent to all interested BroadcastReceivers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                             | ` `[sendBroadcastAsUser](https://developer.android.com/reference/android/content/Context#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` Version of[sendBroadcast(android.content.Intent)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent))that allows you to specify the user the broadcast will be sent to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract void`                                                                                             | ` `[sendBroadcastAsUser](https://developer.android.com/reference/android/content/Context#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission) ` Version of[sendBroadcast(android.content.Intent, java.lang.String)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String))that allows you to specify the user the broadcast will be sent to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                      | ` `[sendBroadcastWithMultiplePermissions](https://developer.android.com/reference/android/content/Context#sendBroadcastWithMultiplePermissions(android.content.Intent,%20java.lang.String[]))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String[]](https://developer.android.com/reference/java/lang/String)` receiverPermissions) ` Broadcast the given intent to all interested BroadcastReceivers, allowing an array of required permissions to be enforced.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                      | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[String](https://developer.android.com/reference/java/lang/String)` receiverAppOp, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))that allows you to specify the App Op to enforce restrictions on which receivers the broadcast will be sent to. | | ` abstract void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendBroadcast(android.content.Intent)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent))that allows you to receive data back from the broadcast.                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                      | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Broadcast the given intent to all interested BroadcastReceivers, delivering them one at a time to allow more preferred receivers to consume the broadcast before it is delivered to less preferred receivers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                      | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendBroadcast(android.content.Intent)](https://developer.android.com/reference/android/content/Context#sendBroadcast(android.content.Intent))that allows you to receive data back from the broadcast.                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                             | ` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission) ` Broadcast the given intent to all interested BroadcastReceivers, delivering them one at a time to allow more preferred receivers to consume the broadcast before it is delivered to less preferred receivers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract void`                                                                                             | ` `[sendOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user, `[String](https://developer.android.com/reference/java/lang/String)` receiverPermission, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` Version of[sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))that allows you to specify the user the broadcast will be sent to.                             | | ` abstract void`                                                                                             | ` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/Context#sendStickyBroadcast(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` *This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                      | ` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/Context#sendStickyBroadcast(android.content.Intent,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` *This method was deprecated in API level 31. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                             | ` `[sendStickyBroadcastAsUser](https://developer.android.com/reference/android/content/Context#sendStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user) ` *This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                             | ` `[sendStickyOrderedBroadcast](https://developer.android.com/reference/android/content/Context#sendStickyOrderedBroadcast(android.content.Intent,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` *This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                             | ` `[sendStickyOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/Context#sendStickyOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle)` user, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` resultReceiver, `[Handler](https://developer.android.com/reference/android/os/Handler)` scheduler, int initialCode, `[String](https://developer.android.com/reference/java/lang/String)` initialData, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` initialExtras) ` *This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that*something*has changed, with another mechanism for apps to retrieve the current value whenever desired.*                                                                                                                                                                                                                                  | | ` abstract void`                                                                                             | ` `[setTheme](https://developer.android.com/reference/android/content/Context#setTheme(int))`(int resid) ` Set the base theme for this context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract void`                                                                                             | ` `[setWallpaper](https://developer.android.com/reference/android/content/Context#setWallpaper(android.graphics.Bitmap))`(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap)` bitmap) ` *This method was deprecated in API level 15. Use[WallpaperManager.set()](https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap))instead.* *This method requires the caller to hold the permission[Manifest.permission.SET_WALLPAPER](https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract void`                                                                                             | ` `[setWallpaper](https://developer.android.com/reference/android/content/Context#setWallpaper(java.io.InputStream))`(`[InputStream](https://developer.android.com/reference/java/io/InputStream)` data) ` *This method was deprecated in API level 15. Use[WallpaperManager.set()](https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream))instead.* *This method requires the caller to hold the permission[Manifest.permission.SET_WALLPAPER](https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER).*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract void`                                                                                             | ` `[startActivities](https://developer.android.com/reference/android/content/Context#startActivities(android.content.Intent[],%20android.os.Bundle))`(`[Intent[]](https://developer.android.com/reference/android/content/Intent)` intents, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Launch multiple new activities.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                             | ` `[startActivities](https://developer.android.com/reference/android/content/Context#startActivities(android.content.Intent[]))`(`[Intent[]](https://developer.android.com/reference/android/content/Intent)` intents) ` Same as[startActivities(android.content.Intent[], android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startActivities(android.content.Intent[],%20android.os.Bundle))with no options specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract void`                                                                                             | ` `[startActivity](https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent) ` Same as[startActivity(android.content.Intent, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle))with no options specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                             | ` `[startActivity](https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` intent, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Launch a new activity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract `[ComponentName](https://developer.android.com/reference/android/content/ComponentName)           | ` `[startForegroundService](https://developer.android.com/reference/android/content/Context#startForegroundService(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service) ` Similar to[startService(android.content.Intent)](https://developer.android.com/reference/android/content/Context#startService(android.content.Intent)), but with an implicit promise that the Service will call[startForeground(int, android.app.Notification)](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))once it begins running.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract boolean`                                                                                          | ` `[startInstrumentation](https://developer.android.com/reference/android/content/Context#startInstrumentation(android.content.ComponentName,%20java.lang.String,%20android.os.Bundle))`(`[ComponentName](https://developer.android.com/reference/android/content/ComponentName)` className, `[String](https://developer.android.com/reference/java/lang/String)` profileFile, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` arguments) ` Start executing an[Instrumentation](https://developer.android.com/reference/android/app/Instrumentation)class.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                             | ` `[startIntentSender](https://developer.android.com/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int))`(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender)` intent, `[Intent](https://developer.android.com/reference/android/content/Intent)` fillInIntent, int flagsMask, int flagsValues, int extraFlags) ` Same as[startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle))with no options specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract void`                                                                                             | ` `[startIntentSender](https://developer.android.com/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle))`(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender)` intent, `[Intent](https://developer.android.com/reference/android/content/Intent)` fillInIntent, int flagsMask, int flagsValues, int extraFlags, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` options) ` Like[startActivity(android.content.Intent, android.os.Bundle)](https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle)), but taking a IntentSender to start.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[ComponentName](https://developer.android.com/reference/android/content/ComponentName)           | ` `[startService](https://developer.android.com/reference/android/content/Context#startService(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service) ` Request that a given application service be started.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract boolean`                                                                                          | ` `[stopService](https://developer.android.com/reference/android/content/Context#stopService(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent)` service) ` Request that a given application service be stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract void`                                                                                             | ` `[unbindService](https://developer.android.com/reference/android/content/Context#unbindService(android.content.ServiceConnection))`(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn) ` Disconnect from an application service.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                      | ` `[unregisterComponentCallbacks](https://developer.android.com/reference/android/content/Context#unregisterComponentCallbacks(android.content.ComponentCallbacks))`(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)` callback) ` Remove a[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)object that was previously registered with[registerComponentCallbacks(android.content.ComponentCallbacks)](https://developer.android.com/reference/android/content/Context#registerComponentCallbacks(android.content.ComponentCallbacks)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                      | ` `[unregisterDeviceIdChangeListener](https://developer.android.com/reference/android/content/Context#unregisterDeviceIdChangeListener(java.util.function.IntConsumer))`(`[IntConsumer](https://developer.android.com/reference/java/util/function/IntConsumer)` listener) ` Removes a device ID changed listener from the Context.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract void`                                                                                             | ` `[unregisterReceiver](https://developer.android.com/reference/android/content/Context#unregisterReceiver(android.content.BroadcastReceiver))`(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver)` receiver) ` Unregister a previously registered BroadcastReceiver.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                      | ` `[updateServiceGroup](https://developer.android.com/reference/android/content/Context#updateServiceGroup(android.content.ServiceConnection,%20int,%20int))`(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection)` conn, int group, int importance) ` For a service previously bound with[bindService(Intent, BindServiceFlags, Executor, ServiceConnection)](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))or a related method, change how the system manages that service's process in relation to other processes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2)` ` |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[onTrimMemory](https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int))`(int level) ` Called when the operating system has determined that it is a good time for a process to trim unneeded memory from its process. | ||
| From interface` `[android.content.ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks)` ` |------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[onConfigurationChanged](https://developer.android.com/reference/android/content/ComponentCallbacks#onConfigurationChanged(android.content.res.Configuration))`(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration)` newConfig) ` Called by the system when the device configuration changes while your component is running. | | ` abstract void` | ` `[onLowMemory](https://developer.android.com/reference/android/content/ComponentCallbacks#onLowMemory())`() ` This is called when the overall system is running low on memory, and actively running processes should trim their memory usage.                                                                                                                          | ||

## Public constructors

### IsolatedService

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public IsolatedService ()
```

<br />

<br />

## Public methods

### getEventUrlProvider

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public final EventUrlProvider getEventUrlProvider (RequestToken requestToken)
```

Returns an[EventUrlProvider](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/EventUrlProvider)for the current request. The[EventUrlProvider](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/EventUrlProvider)provides URLs that can be embedded in HTML. When the HTML is rendered in an[WebView](https://developer.android.com/reference/android/webkit/WebView), the platform intercepts requests to these URLs and invokes`IsolatedWorker#onEvent(EventInput, Consumer)`.

<br />

|                                                               Parameters                                                               ||
|----------------|------------------------------------------------------------------------------------------------------------------------|
| `requestToken` | `RequestToken`: an opaque token that identifies the current request to the service. This value cannot be`null`. <br /> |

|                                                                                                                                                                                  Returns                                                                                                                                                                                   ||
|---------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [EventUrlProvider](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/EventUrlProvider) | An[EventUrlProvider](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/EventUrlProvider)that returns event tracking URLs. This value cannot be`null`. <br /> |

**See also:**

- [onRequest(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onRequest(android.adservices.ondevicepersonalization.RequestToken))  

### getFederatedComputeScheduler

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public final FederatedComputeScheduler getFederatedComputeScheduler (RequestToken requestToken)
```

Returns an[FederatedComputeScheduler](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/FederatedComputeScheduler)for the current request. The[FederatedComputeScheduler](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/FederatedComputeScheduler)can be used to schedule and cancel federated computation jobs. The federated computation includes federated learning and federated analytic jobs.

<br />

|                                                               Parameters                                                               ||
|----------------|------------------------------------------------------------------------------------------------------------------------|
| `requestToken` | `RequestToken`: an opaque token that identifies the current request to the service. This value cannot be`null`. <br /> |

|                                                                                                                                                                                                             Returns                                                                                                                                                                                                              ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [FederatedComputeScheduler](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/FederatedComputeScheduler) | An[FederatedComputeScheduler](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/FederatedComputeScheduler)that returns a federated computation job scheduler. This value cannot be`null`. <br /> |

**See also:**

- [onRequest(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onRequest(android.adservices.ondevicepersonalization.RequestToken))  

### getLocalData

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public final MutableKeyValueStore getLocalData (RequestToken requestToken)
```

Returns a Data Access Object for the LOCAL_DATA table. The LOCAL_DATA table is a persistent key-value store that the service can use to store any data. The contents of this table are visible only to the service running in an isolated process and cannot be sent outside the device.

<br />

|                                                               Parameters                                                               ||
|----------------|------------------------------------------------------------------------------------------------------------------------|
| `requestToken` | `RequestToken`: an opaque token that identifies the current request to the service. This value cannot be`null`. <br /> |

|                                                                                                                                                                                                                                                                                                                                                    Returns                                                                                                                                                                                                                                                                                                                                                     ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MutableKeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/MutableKeyValueStore) | A[MutableKeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/MutableKeyValueStore)object that provides access to the LOCAL_DATA table. The methods in the returned[MutableKeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/MutableKeyValueStore)are blocking operations and should be called from a worker thread and not the main thread or a binder thread. This value cannot be`null`. <br /> |

**See also:**

- [onRequest(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onRequest(android.adservices.ondevicepersonalization.RequestToken))  

### getLogReader

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public final LogReader getLogReader (RequestToken requestToken)
```

Returns a DAO for the REQUESTS and EVENTS tables that provides access to the rows that are readable by the IsolatedService.

<br />

|                                                               Parameters                                                               ||
|----------------|------------------------------------------------------------------------------------------------------------------------|
| `requestToken` | `RequestToken`: an opaque token that identifies the current request to the service. This value cannot be`null`. <br /> |

|                                                                                                                                                                                                                                                                                                                        Returns                                                                                                                                                                                                                                                                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LogReader](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/LogReader) | A[LogReader](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/LogReader)object that provides access to the REQUESTS and EVENTS table. The methods in the returned[LogReader](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/LogReader)are blocking operations and should be called from a worker thread and not the main thread or a binder thread. This value cannot be`null`. <br /> |

**See also:**

- [onRequest(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onRequest(android.adservices.ondevicepersonalization.RequestToken))  

### getRemoteData

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public final KeyValueStore getRemoteData (RequestToken requestToken)
```

Returns a Data Access Object for the REMOTE_DATA table. The REMOTE_DATA table is a read-only key-value store that contains data that is periodically downloaded from an endpoint declared in thetag in the ODP manifest of the service, as shown in the following example.  

    <!-- Contents of res/xml/OdpSettings.xml -->
     <on-device-personalization>
     <!-- Name of the service subclass -->
     <service "com.example.odpsample.SampleService">
       <!-- If this tag is present, ODP will periodically poll this URL and
        download content to populate REMOTE_DATA. Adopters that do not need to
        download content from their servers can skip this tag. -->
       <download-settings url="https://example.com/get" />
     </service>
     </on-device-personalization>
     
<br />

<br />

|                                                               Parameters                                                               ||
|----------------|------------------------------------------------------------------------------------------------------------------------|
| `requestToken` | `RequestToken`: an opaque token that identifies the current request to the service. This value cannot be`null`. <br /> |

|                                                                                                                                                                                                                                                                                                                                Returns                                                                                                                                                                                                                                                                                                                                ||
|---------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [KeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/KeyValueStore) | A[KeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/KeyValueStore)object that provides access to the REMOTE_DATA table. The methods in the returned[KeyValueStore](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/KeyValueStore)are blocking operations and should be called from a worker thread and not the main thread or a binder thread. This value cannot be`null`. <br /> |

**See also:**

- [onRequest(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onRequest(android.adservices.ondevicepersonalization.RequestToken))  

### getUserData

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public final UserData getUserData (RequestToken requestToken)
```

Returns the platform-provided[UserData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/UserData)for the current request.

<br />

|                                                               Parameters                                                               ||
|----------------|------------------------------------------------------------------------------------------------------------------------|
| `requestToken` | `RequestToken`: an opaque token that identifies the current request to the service. This value cannot be`null`. <br /> |

|                                                                                                                                                   Returns                                                                                                                                                    ||
|-----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [UserData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/UserData) | A[UserData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/UserData)object. This value may be`null`. <br /> |

**See also:**

- [onRequest(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#onRequest(android.adservices.ondevicepersonalization.RequestToken))  

### onBind

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public IBinder onBind (Intent intent)
```

Handles binding to the[IsolatedService](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService).

<br />

|                                                                                                                                                                                                                           Parameters                                                                                                                                                                                                                            ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `intent` | `Intent`: The Intent that was used to bind to this service, as given to[Context.bindService](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)). Note that any extras that were included with the Intent at that point will*not* be seen here. This value cannot be`null`. <br /> |

|                                                Returns                                                 ||
|-----------------------------------------------------------------------|---------------------------------|
| [IBinder](https://developer.android.com/reference/android/os/IBinder) | This value may be`null`. <br /> |

### onCreate

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public void onCreate ()
```

Creates a binder for an[IsolatedService](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService).

<br />

### onRequest

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public abstract IsolatedWorker onRequest (RequestToken requestToken)
```

Return an instance of an[IsolatedWorker](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedWorker)that handles client requests.

<br />

|                                                                                                   Parameters                                                                                                   ||
|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `requestToken` | `RequestToken`: an opaque token that identifies the current request to the service that must be passed to service methods that depend on per-request state. This value cannot be`null`. <br /> |

|                                                                                      Returns                                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [IsolatedWorker](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedWorker) | This value cannot be`null`. <br /> |