# AppCompatActivity

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1  
Summary:[Inherited Constants](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#inhconstants)\|[Inherited Fields](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#inhfields)\|[Ctors](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)  

# AppCompatActivity

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


class
AppCompatActivity
`  
`


``


``


``


``


``

extends `[FragmentActivity](https://developer.android.com/reference/android/support/v4/app/FragmentActivity)`


``


implements

`[AppCompatCallback](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback)`,

`[TaskStackBuilder.SupportParentable](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.SupportParentable)`,

`[ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.DelegateProvider)`


`

|---|---|---|---|---|---|------------------------------------------|
| java.lang.Object                                           |||||||
| ↳ | [android.content.Context](https://developer.android.com/reference/android/content/Context.html) ||||||
|   | ↳ | [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) |||||
|   |   | ↳ | [android.view.ContextThemeWrapper](https://developer.android.com/reference/android/view/ContextThemeWrapper.html) ||||
|   |   |   | ↳ | [android.app.Activity](https://developer.android.com/reference/android/app/Activity.html) |||
|   |   |   |   | ↳ | [android.support.v4.app.FragmentActivity](https://developer.android.com/reference/android/support/v4/app/FragmentActivity) ||
|   |   |   |   |   | ↳ | android.support.v7.app.AppCompatActivity |

<br />

*** ** * ** ***

Base class for activities that use the[support library](https://developer.android.com/tools/extras/support-library)action bar features.

You can add an[ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)to your activity when running on API level 7 or higher by extending this class for your activity and setting the activity theme to[Theme.AppCompat](https://developer.android.com/reference/android/support/v7/appcompat/R.style#Theme_AppCompat)or a similar theme.  

### Developer Guides

For information about how to use the action bar, including how to add action items, navigation modes and more, read the[Action Bar](https://developer.android.com/guide/topics/ui/actionbar)API guide.

<br />

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` android.app.Activity ` |-------|-------------------------------------| | `int` | `DEFAULT_KEYS_DIALER` <br />        | | `int` | `DEFAULT_KEYS_DISABLE` <br />       | | `int` | `DEFAULT_KEYS_SEARCH_GLOBAL` <br /> | | `int` | `DEFAULT_KEYS_SEARCH_LOCAL` <br />  | | `int` | `DEFAULT_KEYS_SHORTCUT` <br />      | | `int` | `RESULT_CANCELED` <br />            | | `int` | `RESULT_FIRST_USER` <br />          | | `int` | `RESULT_OK` <br />                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` android.content.Context ` |----------|-------------------------------------------| | `String` | `ACCESSIBILITY_SERVICE` <br />            | | `String` | `ACCOUNT_SERVICE` <br />                  | | `String` | `ACTIVITY_SERVICE` <br />                 | | `String` | `ALARM_SERVICE` <br />                    | | `String` | `APPWIDGET_SERVICE` <br />                | | `String` | `APP_OPS_SERVICE` <br />                  | | `String` | `AUDIO_SERVICE` <br />                    | | `String` | `BATTERY_SERVICE` <br />                  | | `int`    | `BIND_ABOVE_CLIENT` <br />                | | `int`    | `BIND_ADJUST_WITH_ACTIVITY` <br />        | | `int`    | `BIND_ALLOW_OOM_MANAGEMENT` <br />        | | `int`    | `BIND_AUTO_CREATE` <br />                 | | `int`    | `BIND_DEBUG_UNBIND` <br />                | | `int`    | `BIND_EXTERNAL_SERVICE` <br />            | | `int`    | `BIND_IMPORTANT` <br />                   | | `int`    | `BIND_NOT_FOREGROUND` <br />              | | `int`    | `BIND_WAIVE_PRIORITY` <br />              | | `String` | `BLUETOOTH_SERVICE` <br />                | | `String` | `CAMERA_SERVICE` <br />                   | | `String` | `CAPTIONING_SERVICE` <br />               | | `String` | `CARRIER_CONFIG_SERVICE` <br />           | | `String` | `CLIPBOARD_SERVICE` <br />                | | `String` | `COMPANION_DEVICE_SERVICE` <br />         | | `String` | `CONNECTIVITY_SERVICE` <br />             | | `String` | `CONSUMER_IR_SERVICE` <br />              | | `int`    | `CONTEXT_IGNORE_SECURITY` <br />          | | `int`    | `CONTEXT_INCLUDE_CODE` <br />             | | `int`    | `CONTEXT_RESTRICTED` <br />               | | `String` | `CROSS_PROFILE_APPS_SERVICE` <br />       | | `String` | `DEVICE_POLICY_SERVICE` <br />            | | `String` | `DISPLAY_SERVICE` <br />                  | | `String` | `DOWNLOAD_SERVICE` <br />                 | | `String` | `DROPBOX_SERVICE` <br />                  | | `String` | `FINGERPRINT_SERVICE` <br />              | | `String` | `HARDWARE_PROPERTIES_SERVICE` <br />      | | `String` | `INPUT_METHOD_SERVICE` <br />             | | `String` | `INPUT_SERVICE` <br />                    | | `String` | `IPSEC_SERVICE` <br />                    | | `String` | `JOB_SCHEDULER_SERVICE` <br />            | | `String` | `KEYGUARD_SERVICE` <br />                 | | `String` | `LAUNCHER_APPS_SERVICE` <br />            | | `String` | `LAYOUT_INFLATER_SERVICE` <br />          | | `String` | `LOCATION_SERVICE` <br />                 | | `String` | `MEDIA_PROJECTION_SERVICE` <br />         | | `String` | `MEDIA_ROUTER_SERVICE` <br />             | | `String` | `MEDIA_SESSION_SERVICE` <br />            | | `String` | `MIDI_SERVICE` <br />                     | | `int`    | `MODE_APPEND` <br />                      | | `int`    | `MODE_ENABLE_WRITE_AHEAD_LOGGING` <br />  | | `int`    | `MODE_MULTI_PROCESS` <br />               | | `int`    | `MODE_NO_LOCALIZED_COLLATORS` <br />      | | `int`    | `MODE_PRIVATE` <br />                     | | `int`    | `MODE_WORLD_READABLE` <br />              | | `int`    | `MODE_WORLD_WRITEABLE` <br />             | | `String` | `NETWORK_STATS_SERVICE` <br />            | | `String` | `NFC_SERVICE` <br />                      | | `String` | `NOTIFICATION_SERVICE` <br />             | | `String` | `NSD_SERVICE` <br />                      | | `String` | `POWER_SERVICE` <br />                    | | `String` | `PRINT_SERVICE` <br />                    | | `int`    | `RECEIVER_VISIBLE_TO_INSTANT_APPS` <br /> | | `String` | `RESTRICTIONS_SERVICE` <br />             | | `String` | `SEARCH_SERVICE` <br />                   | | `String` | `SENSOR_SERVICE` <br />                   | | `String` | `SHORTCUT_SERVICE` <br />                 | | `String` | `STORAGE_SERVICE` <br />                  | | `String` | `STORAGE_STATS_SERVICE` <br />            | | `String` | `SYSTEM_HEALTH_SERVICE` <br />            | | `String` | `TELECOM_SERVICE` <br />                  | | `String` | `TELEPHONY_SERVICE` <br />                | | `String` | `TELEPHONY_SUBSCRIPTION_SERVICE` <br />   | | `String` | `TEXT_CLASSIFICATION_SERVICE` <br />      | | `String` | `TEXT_SERVICES_MANAGER_SERVICE` <br />    | | `String` | `TV_INPUT_SERVICE` <br />                 | | `String` | `UI_MODE_SERVICE` <br />                  | | `String` | `USAGE_STATS_SERVICE` <br />              | | `String` | `USB_SERVICE` <br />                      | | `String` | `USER_SERVICE` <br />                     | | `String` | `VIBRATOR_SERVICE` <br />                 | | `String` | `WALLPAPER_SERVICE` <br />                | | `String` | `WIFI_AWARE_SERVICE` <br />               | | `String` | `WIFI_P2P_SERVICE` <br />                 | | `String` | `WIFI_RTT_RANGING_SERVICE` <br />         | | `String` | `WIFI_SERVICE` <br />                     | | `String` | `WINDOW_SERVICE` <br />                   | |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` android.content.ComponentCallbacks2 ` |-------|---------------------------------------| | `int` | `TRIM_MEMORY_BACKGROUND` <br />       | | `int` | `TRIM_MEMORY_COMPLETE` <br />         | | `int` | `TRIM_MEMORY_MODERATE` <br />         | | `int` | `TRIM_MEMORY_RUNNING_CRITICAL` <br /> | | `int` | `TRIM_MEMORY_RUNNING_LOW` <br />      | | `int` | `TRIM_MEMORY_RUNNING_MODERATE` <br /> | | `int` | `TRIM_MEMORY_UI_HIDDEN` <br />        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

|                                                                                                                                                            ### Inherited fields                                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` android.app.Activity ` |---------------------------------|----------------------------| | ` protected static final int[]` | `FOCUSED_STATE_SET` <br /> | |

|                                                       ### Public constructors                                                        ||
|-----------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[AppCompatActivity](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#AppCompatActivity())`() ` |

|                                                                                                                                                                                                                                                                                                                             ### Public methods                                                                                                                                                                                                                                                                                                                              ||
|------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                                                                            | ` `[addContentView](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#addContentView(android.view.View, android.view.ViewGroup.LayoutParams))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` params) `                                                                                                                                                     |
| ` void`                                                                                                                            | ` `[closeOptionsMenu](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#closeOptionsMenu())`() `                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` boolean`                                                                                                                         | ` `[dispatchKeyEvent](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#dispatchKeyEvent(android.view.KeyEvent))`(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` event) `                                                                                                                                                                                                                                                                                              |
| ` <T extends `[View](https://developer.android.com/reference/android/view/View.html)`> T`                                          | ` `[findViewById](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#findViewById(int))`(int id) `                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` `[AppCompatDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate)                           | ` `[getDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getDelegate())`() `                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` `[ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate) | ` `[getDrawerToggleDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getDrawerToggleDelegate())`() `                                                                                                                                                                                                                                                                                                                                                                                           |
| ` `[MenuInflater](https://developer.android.com/reference/android/view/MenuInflater.html)                                          | ` `[getMenuInflater](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getMenuInflater())`() `                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)                                         | ` `[getResources](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getResources())`() `                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` `[ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)                                           | ` `[getSupportActionBar](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getSupportActionBar())`() ` Support library version of[getActionBar()](https://developer.android.com/reference/android/app/Activity.html#getActionBar()).                                                                                                                                                                                                                                                                     |
| ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                                                   | ` `[getSupportParentActivityIntent](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getSupportParentActivityIntent())`() ` Obtain an[Intent](https://developer.android.com/reference/android/content/Intent.html)that will launch an explicit target activity specified by sourceActivity's[PARENT_ACTIVITY](https://developer.android.com/reference/android/support/v4/app/NavUtils#PARENT_ACTIVITY)\<meta-data\> element in the application's manifest.                                              |
| ` void`                                                                                                                            | ` `[invalidateOptionsMenu](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#invalidateOptionsMenu())`() `                                                                                                                                                                                                                                                                                                                                                                                               |
| ` void`                                                                                                                            | ` `[onConfigurationChanged](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onConfigurationChanged(android.content.res.Configuration))`(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` newConfig) ` Dispatch configuration change to all fragments.                                                                                                                                                                                                 |
| ` void`                                                                                                                            | ` `[onContentChanged](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onContentChanged())`() `                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` void`                                                                                                                            | ` `[onCreateSupportNavigateUpTaskStack](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onCreateSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder))`(`[TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)` builder) ` Support version of[onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)](https://developer.android.com/reference/android/app/Activity.html#onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)).     |
| ` boolean`                                                                                                                         | ` `[onKeyDown](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onKeyDown(int, android.view.KeyEvent))`(int keyCode, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` event) `                                                                                                                                                                                                                                                                                          |
| ` final boolean`                                                                                                                   | ` `[onMenuItemSelected](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onMenuItemSelected(int, android.view.MenuItem))`(int featureId, `[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` item) ` Dispatch context and options menu to fragments.                                                                                                                                                                                                                       |
| ` boolean`                                                                                                                         | ` `[onMenuOpened](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onMenuOpened(int, android.view.Menu))`(int featureId, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` menu) ` <br /> Please note: AppCompat uses its own feature id for the action bar:[FEATURE_SUPPORT_ACTION_BAR](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate#FEATURE_SUPPORT_ACTION_BAR).                                                                           |
| ` void`                                                                                                                            | ` `[onPanelClosed](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onPanelClosed(int, android.view.Menu))`(int featureId, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` menu) ` Call onOptionsMenuClosed() on fragments. Please note: AppCompat uses its own feature id for the action bar:[FEATURE_SUPPORT_ACTION_BAR](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate#FEATURE_SUPPORT_ACTION_BAR).                                       |
| ` void`                                                                                                                            | ` `[onPrepareSupportNavigateUpTaskStack](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onPrepareSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder))`(`[TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)` builder) ` Support version of[onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)](https://developer.android.com/reference/android/app/Activity.html#onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)). |
| ` void`                                                                                                                            | ` `[onSupportActionModeFinished](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onSupportActionModeFinished(android.support.v7.view.ActionMode))`(`[ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode)` mode) ` Notifies the activity that a support action mode has finished.                                                                                                                                                                                   |
| ` void`                                                                                                                            | ` `[onSupportActionModeStarted](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onSupportActionModeStarted(android.support.v7.view.ActionMode))`(`[ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode)` mode) ` Notifies the Activity that a support action mode has been started.                                                                                                                                                                                 |
| ` void`                                                                                                                            | ` `[onSupportContentChanged](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onSupportContentChanged())`() ` *This method was deprecated in API level 25.1.0. Use[onContentChanged()](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onContentChanged())instead.*                                                                                                                                                                                                    |
| ` boolean`                                                                                                                         | ` `[onSupportNavigateUp](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onSupportNavigateUp())`() ` This method is called whenever the user chooses to navigate Up within your application's activity hierarchy from the action bar.                                                                                                                                                                                                                                                                  |
| ` `[ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode)                                        | ` `[onWindowStartingSupportActionMode](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onWindowStartingSupportActionMode(android.support.v7.view.ActionMode.Callback))`(`[ActionMode.Callback](https://developer.android.com/reference/android/support/v7/view/ActionMode.Callback)` callback) ` Called when a support action mode is being started for this window.                                                                                                                                   |
| ` void`                                                                                                                            | ` `[openOptionsMenu](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#openOptionsMenu())`() `                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` void`                                                                                                                            | ` `[setContentView](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setContentView(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) `                                                                                                                                                                                                                                                                                                               |
| ` void`                                                                                                                            | ` `[setContentView](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setContentView(int))`(int layoutResID) `                                                                                                                                                                                                                                                                                                                                                                                           |
| ` void`                                                                                                                            | ` `[setContentView](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setContentView(android.view.View, android.view.ViewGroup.LayoutParams))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` params) `                                                                                                                                                     |
| ` void`                                                                                                                            | ` `[setSupportActionBar](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setSupportActionBar(android.support.v7.widget.Toolbar))`(`[Toolbar](https://developer.android.com/reference/android/support/v7/widget/Toolbar)` toolbar) ` Set a[Toolbar](https://developer.android.com/reference/android/widget/Toolbar.html)to act as the[ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)for this Activity window.                                                     |
| ` void`                                                                                                                            | ` `[setSupportProgress](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setSupportProgress(int))`(int progress) ` *This method was deprecated in API level 25.1.0. Progress bars are no longer provided in AppCompat.*                                                                                                                                                                                                                                                                                 |
| ` void`                                                                                                                            | ` `[setSupportProgressBarIndeterminate](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setSupportProgressBarIndeterminate(boolean))`(boolean indeterminate) ` *This method was deprecated in API level 25.1.0. Progress bars are no longer provided in AppCompat.*                                                                                                                                                                                                                                    |
| ` void`                                                                                                                            | ` `[setSupportProgressBarIndeterminateVisibility](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setSupportProgressBarIndeterminateVisibility(boolean))`(boolean visible) ` *This method was deprecated in API level 25.1.0. Progress bars are no longer provided in AppCompat.*                                                                                                                                                                                                                      |
| ` void`                                                                                                                            | ` `[setSupportProgressBarVisibility](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setSupportProgressBarVisibility(boolean))`(boolean visible) ` *This method was deprecated in API level 25.1.0. Progress bars are no longer provided in AppCompat.*                                                                                                                                                                                                                                                |
| ` void`                                                                                                                            | ` `[setTheme](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#setTheme(int))`(int resid) `                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` `[ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode)                                        | ` `[startSupportActionMode](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#startSupportActionMode(android.support.v7.view.ActionMode.Callback))`(`[ActionMode.Callback](https://developer.android.com/reference/android/support/v7/view/ActionMode.Callback)` callback) ` Start an action mode.                                                                                                                                                                                                       |
| ` void`                                                                                                                            | ` `[supportInvalidateOptionsMenu](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportInvalidateOptionsMenu())`() ` *This method is deprecated. Call[invalidateOptionsMenu()](https://developer.android.com/reference/android/app/Activity.html#invalidateOptionsMenu())directly.*                                                                                                                                                                                                                  |
| ` void`                                                                                                                            | ` `[supportNavigateUpTo](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportNavigateUpTo(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` upIntent) ` Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity in the process.                                                                                                                                                                        |
| ` boolean`                                                                                                                         | ` `[supportRequestWindowFeature](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportRequestWindowFeature(int))`(int featureId) ` Enable extended support library window features.                                                                                                                                                                                                                                                                                                                  |
| ` boolean`                                                                                                                         | ` `[supportShouldUpRecreateTask](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportShouldUpRecreateTask(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` targetIntent) ` Returns true if sourceActivity should recreate the task when navigating 'up' by using targetIntent.                                                                                                                                                             |

|                                                                                                                                  ### Protected methods                                                                                                                                  ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onCreate](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onCreate(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) ` Perform initialization of all fragments.         |
| ` void` | ` `[onDestroy](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onDestroy())`() ` Destroy all fragments.                                                                                                                                       |
| ` void` | ` `[onPostCreate](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onPostCreate(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) `                                          |
| ` void` | ` `[onPostResume](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onPostResume())`() ` Dispatch onResume() to fragments.                                                                                                                      |
| ` void` | ` `[onSaveInstanceState](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onSaveInstanceState(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` outState) ` Save all appropriate fragment state. |
| ` void` | ` `[onStart](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onStart())`() ` Dispatch onStart() to all fragments.                                                                                                                             |
| ` void` | ` `[onStop](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onStop())`() ` Dispatch onStop() to all fragments.                                                                                                                                |
| ` void` | ` `[onTitleChanged](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onTitleChanged(java.lang.CharSequence, int))`(CharSequence title, int color) `                                                                                            |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` `[android.support.v4.app.FragmentActivity](https://developer.android.com/reference/android/support/v4/app/FragmentActivity)` ` |------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                              | ` `[dump](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#dump(java.lang.String, java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]))`(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) ` Print the Activity's state into the given stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` Object`                                                                                            | ` `[getLastCustomNonConfigurationInstance](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#getLastCustomNonConfigurationInstance())`() ` Return the value previously returned from[onRetainCustomNonConfigurationInstance()](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onRetainCustomNonConfigurationInstance()).                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` Lifecycle`                                                                                         | ` `[getLifecycle](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#getLifecycle())`() ` Returns the Lifecycle of the provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[FragmentManager](https://developer.android.com/reference/android/support/v4/app/FragmentManager) | ` `[getSupportFragmentManager](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#getSupportFragmentManager())`() ` Return the FragmentManager for interacting with fragments associated with this activity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[LoaderManager](https://developer.android.com/reference/android/support/v4/app/LoaderManager)     | ` `[getSupportLoaderManager](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#getSupportLoaderManager())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` ViewModelStore`                                                                                    | ` `[getViewModelStore](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#getViewModelStore())`() ` Returns the[ViewModelStore](https://developer.android.com/reference/android/arch/lifecycle/ViewModelStore)associated with this activity                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                              | ` `[onActivityResult](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onActivityResult(int, int, android.content.Intent))`(int requestCode, int resultCode, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` data) ` Dispatch incoming result to the correct fragment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                              | ` `[onAttachFragment](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onAttachFragment(android.support.v4.app.Fragment))`(`[Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)` fragment) ` Called when a fragment is attached to the activity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                              | ` `[onBackPressed](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onBackPressed())`() ` Take care of popping the fragment back stack or finishing the activity as appropriate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                              | ` `[onConfigurationChanged](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onConfigurationChanged(android.content.res.Configuration))`(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` newConfig) ` Dispatch configuration change to all fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                              | ` `[onCreate](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onCreate(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) ` Perform initialization of all fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                           | ` `[onCreatePanelMenu](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onCreatePanelMenu(int, android.view.Menu))`(int featureId, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` menu) ` Dispatch to Fragment.onCreateOptionsMenu().                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[View](https://developer.android.com/reference/android/view/View.html)                            | ` `[onCreateView](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet))`(`[View](https://developer.android.com/reference/android/view/View.html)` parent, String name, `[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                                                                                                                                                                                                                                                                                                 | | ` `[View](https://developer.android.com/reference/android/view/View.html)                            | ` `[onCreateView](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet))`(String name, `[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                              | ` `[onDestroy](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onDestroy())`() ` Destroy all fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                              | ` `[onLowMemory](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onLowMemory())`() ` Dispatch onLowMemory() to all fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                           | ` `[onMenuItemSelected](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onMenuItemSelected(int, android.view.MenuItem))`(int featureId, `[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` item) ` Dispatch context and options menu to fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                              | ` `[onMultiWindowModeChanged](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onMultiWindowModeChanged(boolean))`(boolean isInMultiWindowMode) ` <br /> **Note:** If you override this method you must call`super.onMultiWindowModeChanged`to correctly dispatch the event to support fragments attached to this activity.                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                              | ` `[onNewIntent](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onNewIntent(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent) ` Handle onNewIntent() to inform the fragment manager that the state is not saved.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                              | ` `[onPanelClosed](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onPanelClosed(int, android.view.Menu))`(int featureId, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` menu) ` Call onOptionsMenuClosed() on fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                              | ` `[onPause](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onPause())`() ` Dispatch onPause() to fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                              | ` `[onPictureInPictureModeChanged](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onPictureInPictureModeChanged(boolean))`(boolean isInPictureInPictureMode) ` <br /> **Note:** If you override this method you must call`super.onPictureInPictureModeChanged`to correctly dispatch the event to support fragments attached to this activity.                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                              | ` `[onPostResume](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onPostResume())`() ` Dispatch onResume() to fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` boolean`                                                                                           | ` `[onPreparePanel](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onPreparePanel(int, android.view.View, android.view.Menu))`(int featureId, `[View](https://developer.android.com/reference/android/view/View.html)` view, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` menu) ` Dispatch onPrepareOptionsMenu() to fragments.                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                              | ` `[onRequestPermissionsResult](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onRequestPermissionsResult(int, java.lang.String[], int[]))`(int requestCode, String[] permissions, int[] grantResults) ` Callback for the result from requesting permissions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                              | ` `[onResume](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onResume())`() ` Dispatch onResume() to fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                              | ` `[onResumeFragments](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onResumeFragments())`() ` This is the fragment-orientated version of[onResume()](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onResume())that you can override to perform operations in the Activity at the same point where its fragments are resumed.                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` Object`                                                                                            | ` `[onRetainCustomNonConfigurationInstance](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onRetainCustomNonConfigurationInstance())`() ` Use this instead of[onRetainNonConfigurationInstance()](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onRetainNonConfigurationInstance()).                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` final Object`                                                                                      | ` `[onRetainNonConfigurationInstance](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onRetainNonConfigurationInstance())`() ` Retain all appropriate fragment state.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                              | ` `[onSaveInstanceState](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onSaveInstanceState(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` outState) ` Save all appropriate fragment state.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                              | ` `[onStart](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onStart())`() ` Dispatch onStart() to all fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                              | ` `[onStateNotSaved](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onStateNotSaved())`() ` Hook in to note that fragment state is no longer saved.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                              | ` `[onStop](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#onStop())`() ` Dispatch onStop() to all fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                              | ` `[setEnterSharedElementCallback](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#setEnterSharedElementCallback(android.support.v4.app.SharedElementCallback))`(`[SharedElementCallback](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback)` callback) ` When[makeSceneTransitionAnimation(Activity, android.view.View, String)](https://developer.android.com/reference/android/app/ActivityOptions.html#makeSceneTransitionAnimation(android.app.Activity, android.view.View, java.lang.String))was used to start an Activity,<var translate="no">callback</var>will be called to handle shared elements on the*launched*Activity.                                                                                                             | | ` void`                                                                                              | ` `[setExitSharedElementCallback](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#setExitSharedElementCallback(android.support.v4.app.SharedElementCallback))`(`[SharedElementCallback](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback)` listener) ` When[makeSceneTransitionAnimation(Activity, android.view.View, String)](https://developer.android.com/reference/android/app/ActivityOptions.html#makeSceneTransitionAnimation(android.app.Activity, android.view.View, java.lang.String))was used to start an Activity,<var translate="no">listener</var>will be called to handle shared elements on the*launching*Activity.                                                                                                              | | ` void`                                                                                              | ` `[startActivityForResult](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#startActivityForResult(android.content.Intent, int, android.os.Bundle))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent, int requestCode, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` options) `                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                              | ` `[startActivityForResult](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#startActivityForResult(android.content.Intent, int))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent, int requestCode) ` Modifies the standard behavior to allow results to be delivered to fragments.                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                              | ` `[startActivityFromFragment](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#startActivityFromFragment(android.support.v4.app.Fragment, android.content.Intent, int))`(`[Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)` fragment, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent, int requestCode) ` Called by Fragment.startActivityForResult() to implement its behavior.                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                              | ` `[startActivityFromFragment](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#startActivityFromFragment(android.support.v4.app.Fragment, android.content.Intent, int, android.os.Bundle))`(`[Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)` fragment, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent, int requestCode, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` options) ` Called by Fragment.startActivityForResult() to implement its behavior.                                                                                                                                                                                                                    | | ` void`                                                                                              | ` `[startIntentSenderForResult](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int))`(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` intent, int requestCode, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` fillInIntent, int flagsMask, int flagsValues, int extraFlags) `                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                              | ` `[startIntentSenderForResult](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle))`(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` intent, int requestCode, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` fillInIntent, int flagsMask, int flagsValues, int extraFlags, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` options) `                                                                                                                                                                                                                   | | ` void`                                                                                              | ` `[startIntentSenderFromFragment](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#startIntentSenderFromFragment(android.support.v4.app.Fragment, android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle))`(`[Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)` fragment, `[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` intent, int requestCode, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` fillInIntent, int flagsMask, int flagsValues, int extraFlags, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` options) ` Called by Fragment.startIntentSenderForResult() to implement its behavior. | | ` void`                                                                                              | ` `[supportFinishAfterTransition](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#supportFinishAfterTransition())`() ` Reverses the Activity Scene entry Transition and triggers the calling Activity to reverse its exit Transition.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                              | ` `[supportInvalidateOptionsMenu](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#supportInvalidateOptionsMenu())`() ` *This method was deprecated in API level 26.1.0. Call[invalidateOptionsMenu()](https://developer.android.com/reference/android/app/Activity.html#invalidateOptionsMenu())directly.*                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                              | ` `[supportPostponeEnterTransition](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#supportPostponeEnterTransition())`() ` Support library version of[postponeEnterTransition()](https://developer.android.com/reference/android/app/Activity.html#postponeEnterTransition())that works only on API 21 and later.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                              | ` `[supportStartPostponedEnterTransition](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#supportStartPostponedEnterTransition())`() ` Support library version of[startPostponedEnterTransition()](https://developer.android.com/reference/android/app/Activity.html#startPostponedEnterTransition())that only works with API 21 and later.                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` final void`                                                                                        | ` `[validateRequestPermissionsRequestCode](https://developer.android.com/reference/android/support/v4/app/FragmentActivity#validateRequestPermissionsRequestCode(int))`(int requestCode) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` `[android.app.Activity](https://developer.android.com/reference/android/app/Activity.html)` ` |----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                        | ` addContentView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg1) `                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` attachBaseContext(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0) `                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` closeContextMenu() `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                        | ` closeOptionsMenu() `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[PendingIntent](https://developer.android.com/reference/android/app/PendingIntent.html)                     | ` createPendingResult(int arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                     | | ` final void`                                                                                                  | ` dismissDialog(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final void`                                                                                                  | ` dismissKeyboardShortcutsHelper() `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                     | ` dispatchGenericMotionEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                     | ` dispatchKeyEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                     | ` dispatchKeyShortcutEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                     | ` dispatchPopulateAccessibilityEvent(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg0) `                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                     | ` dispatchTouchEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                     | ` dispatchTrackballEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                        | ` dump(String arg0, FileDescriptor arg1, PrintWriter arg2, String[] arg3) `                                                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                     | ` enterPictureInPictureMode(`[PictureInPictureParams](https://developer.android.com/reference/android/app/PictureInPictureParams.html)` arg0) `                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` enterPictureInPictureMode() `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` <T extends `[View](https://developer.android.com/reference/android/view/View.html)`> T`                      | ` findViewById(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` finish() `                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                        | ` finishActivity(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                        | ` finishActivityFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                        | ` finishAffinity() `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` finishAfterTransition() `                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                        | ` finishAndRemoveTask() `                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                        | ` finishFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0) `                                                                                                                                                                                                                                                                                                                             | | ` `[ActionBar](https://developer.android.com/reference/android/app/ActionBar.html)                             | ` getActionBar() `                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` final `[Application](https://developer.android.com/reference/android/app/Application.html)                   | ` getApplication() `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)                 | ` getCallingActivity() `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` String`                                                                                                      | ` getCallingPackage() `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                                         | ` getChangingConfigurations() `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)                 | ` getComponentName() `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[Scene](https://developer.android.com/reference/android/transition/Scene.html)                              | ` getContentScene() `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[TransitionManager](https://developer.android.com/reference/android/transition/TransitionManager.html)      | ` getContentTransitionManager() `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                      | ` getCurrentFocus() `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[FragmentManager](https://developer.android.com/reference/android/app/FragmentManager.html)                 | ` getFragmentManager() `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                               | ` getIntent() `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` Object`                                                                                                      | ` getLastNonConfigurationInstance() `                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater.html)                  | ` getLayoutInflater() `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[LoaderManager](https://developer.android.com/reference/android/app/LoaderManager.html)                     | ` getLoaderManager() `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` String`                                                                                                      | ` getLocalClassName() `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                                         | ` getMaxNumPictureInPictureActions() `                                                                                                                                                                                                                                                                                                                                                                                                | | ` final `[MediaController](https://developer.android.com/reference/android/media/session/MediaController.html) | ` getMediaController() `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[MenuInflater](https://developer.android.com/reference/android/view/MenuInflater.html)                      | ` getMenuInflater() `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final `[Activity](https://developer.android.com/reference/android/app/Activity.html)                         | ` getParent() `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                               | ` getParentActivityIntent() `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html)         | ` getPreferences(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                         | ` getReferrer() `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` int`                                                                                                         | ` getRequestedOrientation() `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` final `[SearchEvent](https://developer.android.com/reference/android/view/SearchEvent.html)                  | ` getSearchEvent() `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` Object`                                                                                                      | ` getSystemService(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` int`                                                                                                         | ` getTaskId() `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` final CharSequence`                                                                                          | ` getTitle() `                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` final int`                                                                                                   | ` getTitleColor() `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[VoiceInteractor](https://developer.android.com/reference/android/app/VoiceInteractor.html)                 | ` getVoiceInteractor() `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` final int`                                                                                                   | ` getVolumeControlStream() `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[Window](https://developer.android.com/reference/android/view/Window.html)                                  | ` getWindow() `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[WindowManager](https://developer.android.com/reference/android/view/WindowManager.html)                    | ` getWindowManager() `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                                     | ` hasWindowFocus() `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` invalidateOptionsMenu() `                                                                                                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                     | ` isActivityTransitionRunning() `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                     | ` isChangingConfigurations() `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` final boolean`                                                                                               | ` isChild() `                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                                     | ` isDestroyed() `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                     | ` isFinishing() `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                     | ` isImmersive() `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                     | ` isInMultiWindowMode() `                                                                                                                                                                                                                                                                                                                                                                                                             | | ` boolean`                                                                                                     | ` isInPictureInPictureMode() `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                     | ` isLocalVoiceInteractionSupported() `                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                                     | ` isTaskRoot() `                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                     | ` isVoiceInteraction() `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                                     | ` isVoiceInteractionRoot() `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` final `[Cursor](https://developer.android.com/reference/android/database/Cursor.html)                        | ` managedQuery(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String[] arg1, String arg2, String[] arg3, String arg4) `                                                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                     | ` moveTaskToBack(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                     | ` navigateUpTo(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                                     | ` navigateUpToFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1) `                                                                                                                                                                                                                                 | | ` void`                                                                                                        | ` onActionModeFinished(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)` arg0) `                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                        | ` onActionModeStarted(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)` arg0) `                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                        | ` onActivityReenter(int arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1) `                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                        | ` onActivityResult(int arg0, int arg1, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg2) `                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                        | ` onApplyThemeResource(`[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg0, int arg1, boolean arg2) `                                                                                                                                                                                                                                                                          | | ` void`                                                                                                        | ` onAttachFragment(`[Fragment](https://developer.android.com/reference/android/app/Fragment.html)` arg0) `                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` onAttachedToWindow() `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                        | ` onBackPressed() `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                        | ` onChildTitleChanged(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, CharSequence arg1) `                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                        | ` onConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                        | ` onContentChanged() `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                                     | ` onContextItemSelected(`[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` arg0) `                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                        | ` onContextMenuClosed(`[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg0) `                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                        | ` onCreate(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0, `[PersistableBundle](https://developer.android.com/reference/android/os/PersistableBundle.html)` arg1) `                                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` onCreate(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` onCreateContextMenu(`[ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, `[ContextMenu.ContextMenuInfo](https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html)` arg2) `                                                                                                      | | ` CharSequence`                                                                                                | ` onCreateDescription() `                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[Dialog](https://developer.android.com/reference/android/app/Dialog.html)                                   | ` onCreateDialog(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[Dialog](https://developer.android.com/reference/android/app/Dialog.html)                                   | ` onCreateDialog(int arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` onCreateNavigateUpTaskStack(`[TaskStackBuilder](https://developer.android.com/reference/android/app/TaskStackBuilder.html)` arg0) `                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                     | ` onCreateOptionsMenu(`[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg0) `                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                                     | ` onCreatePanelMenu(int arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1) `                                                                                                                                                                                                                                                                                                                        | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                      | ` onCreatePanelView(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                     | ` onCreateThumbnail(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)` arg0, `[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg1) `                                                                                                                                                                                                                                   | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                      | ` onCreateView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, String arg1, `[Context](https://developer.android.com/reference/android/content/Context.html)` arg2, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg3) `                                                                                                                                   | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                      | ` onCreateView(String arg0, `[Context](https://developer.android.com/reference/android/content/Context.html)` arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2) `                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` onDestroy() `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` onDetachedFromWindow() `                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` onEnterAnimationComplete() `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                     | ` onGenericMotionEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                     | ` onKeyDown(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                     | ` onKeyLongPress(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                     | ` onKeyMultiple(int arg0, int arg1, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg2) `                                                                                                                                                                                                                                                                                                          | | ` boolean`                                                                                                     | ` onKeyShortcut(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                     | ` onKeyUp(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                        | ` onLocalVoiceInteractionStarted() `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` onLocalVoiceInteractionStopped() `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` onLowMemory() `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                     | ` onMenuItemSelected(int arg0, `[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` arg1) `                                                                                                                                                                                                                                                                                                               | | ` boolean`                                                                                                     | ` onMenuOpened(int arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1) `                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                        | ` onMultiWindowModeChanged(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` onMultiWindowModeChanged(boolean arg0, `[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg1) `                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                     | ` onNavigateUp() `                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                     | ` onNavigateUpFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0) `                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` onNewIntent(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                     | ` onOptionsItemSelected(`[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` arg0) `                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                        | ` onOptionsMenuClosed(`[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg0) `                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                        | ` onPanelClosed(int arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1) `                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` onPause() `                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` onPictureInPictureModeChanged(boolean arg0, `[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg1) `                                                                                                                                                                                                                                                                               | | ` void`                                                                                                        | ` onPictureInPictureModeChanged(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` onPostCreate(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                        | ` onPostCreate(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0, `[PersistableBundle](https://developer.android.com/reference/android/os/PersistableBundle.html)` arg1) `                                                                                                                                                                                                                              | | ` void`                                                                                                        | ` onPostResume() `                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                        | ` onPrepareDialog(int arg0, `[Dialog](https://developer.android.com/reference/android/app/Dialog.html)` arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                                                                                                                      | | ` void`                                                                                                        | ` onPrepareDialog(int arg0, `[Dialog](https://developer.android.com/reference/android/app/Dialog.html)` arg1) `                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` onPrepareNavigateUpTaskStack(`[TaskStackBuilder](https://developer.android.com/reference/android/app/TaskStackBuilder.html)` arg0) `                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                                     | ` onPrepareOptionsMenu(`[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg0) `                                                                                                                                                                                                                                                                                                                               | | ` boolean`                                                                                                     | ` onPreparePanel(int arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg2) `                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` onProvideAssistContent(`[AssistContent](https://developer.android.com/reference/android/app/assist/AssistContent.html)` arg0) `                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                        | ` onProvideAssistData(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                        | ` onProvideKeyboardShortcuts(List<`[KeyboardShortcutGroup](https://developer.android.com/reference/android/view/KeyboardShortcutGroup.html)`> arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1, int arg2) `                                                                                                                                                                                        | | ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                         | ` onProvideReferrer() `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                        | ` onRequestPermissionsResult(int arg0, String[] arg1, int[] arg2) `                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                        | ` onRestart() `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` onRestoreInstanceState(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                        | ` onRestoreInstanceState(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0, `[PersistableBundle](https://developer.android.com/reference/android/os/PersistableBundle.html)` arg1) `                                                                                                                                                                                                                    | | ` void`                                                                                                        | ` onResume() `                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` Object`                                                                                                      | ` onRetainNonConfigurationInstance() `                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                        | ` onSaveInstanceState(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0, `[PersistableBundle](https://developer.android.com/reference/android/os/PersistableBundle.html)` arg1) `                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` onSaveInstanceState(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                                     | ` onSearchRequested(`[SearchEvent](https://developer.android.com/reference/android/view/SearchEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                     | ` onSearchRequested() `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                        | ` onStart() `                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` onStateNotSaved() `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                        | ` onStop() `                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                        | ` onTitleChanged(CharSequence arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                     | ` onTouchEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                                     | ` onTrackballEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                        | ` onTrimMemory(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` onUserInteraction() `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                        | ` onUserLeaveHint() `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                        | ` onVisibleBehindCanceled() `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` onWindowAttributesChanged(`[WindowManager.LayoutParams](https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html)` arg0) `                                                                                                                                                                                                                                                                              | | ` void`                                                                                                        | ` onWindowFocusChanged(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                          | ` onWindowStartingActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                 | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                          | ` onWindowStartingActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0) `                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                        | ` openContextMenu(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                        | ` openOptionsMenu() `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                        | ` overridePendingTransition(int arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                        | ` postponeEnterTransition() `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` recreate() `                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                        | ` registerForContextMenu(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                                                                                                                                                             | | ` boolean`                                                                                                     | ` releaseInstance() `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                                                  | ` removeDialog(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` reportFullyDrawn() `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[DragAndDropPermissions](https://developer.android.com/reference/android/view/DragAndDropPermissions.html)  | ` requestDragAndDropPermissions(`[DragEvent](https://developer.android.com/reference/android/view/DragEvent.html)` arg0) `                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                                                  | ` requestPermissions(String[] arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                       | | ` final void`                                                                                                  | ` requestShowKeyboardShortcuts() `                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                     | ` requestVisibleBehind(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                               | ` requestWindowFeature(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                    | | ` final <T extends `[View](https://developer.android.com/reference/android/view/View.html)`> T`                | ` requireViewById(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` final void`                                                                                                  | ` runOnUiThread(Runnable arg0) `                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                        | ` setActionBar(`[Toolbar](https://developer.android.com/reference/android/widget/Toolbar.html)` arg0) `                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                        | ` setContentTransitionManager(`[TransitionManager](https://developer.android.com/reference/android/transition/TransitionManager.html)` arg0) `                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                        | ` setContentView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg1) `                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` setContentView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                        | ` setContentView(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` final void`                                                                                                  | ` setDefaultKeyMode(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` setEnterSharedElementCallback(`[SharedElementCallback](https://developer.android.com/reference/android/app/SharedElementCallback.html)` arg0) `                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                        | ` setExitSharedElementCallback(`[SharedElementCallback](https://developer.android.com/reference/android/app/SharedElementCallback.html)` arg0) `                                                                                                                                                                                                                                                                                      | | ` final void`                                                                                                  | ` setFeatureDrawable(int arg0, `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg1) `                                                                                                                                                                                                                                                                                                  | | ` final void`                                                                                                  | ` setFeatureDrawableAlpha(int arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                       | | ` final void`                                                                                                  | ` setFeatureDrawableResource(int arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                    | | ` final void`                                                                                                  | ` setFeatureDrawableUri(int arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1) `                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` setFinishOnTouchOutside(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                        | ` setImmersive(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                        | ` setIntent(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                   | | ` final void`                                                                                                  | ` setMediaController(`[MediaController](https://developer.android.com/reference/android/media/session/MediaController.html)` arg0) `                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` setPictureInPictureParams(`[PictureInPictureParams](https://developer.android.com/reference/android/app/PictureInPictureParams.html)` arg0) `                                                                                                                                                                                                                                                                                       | | ` final void`                                                                                                  | ` setProgress(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                             | | ` final void`                                                                                                  | ` setProgressBarIndeterminate(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                         | | ` final void`                                                                                                  | ` setProgressBarIndeterminateVisibility(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                               | | ` final void`                                                                                                  | ` setProgressBarVisibility(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` setRequestedOrientation(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                                                  | ` setResult(int arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1) `                                                                                                                                                                                                                                                                                                                         | | ` final void`                                                                                                  | ` setResult(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` final void`                                                                                                  | ` setSecondaryProgress(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                        | ` setShowWhenLocked(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                        | ` setTaskDescription(`[ActivityManager.TaskDescription](https://developer.android.com/reference/android/app/ActivityManager.TaskDescription.html)` arg0) `                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` setTheme(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                        | ` setTitle(CharSequence arg0) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` setTitle(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                        | ` setTitleColor(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                        | ` setTurnScreenOn(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                        | ` setVisible(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` final void`                                                                                                  | ` setVolumeControlStream(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                        | ` setVrModeEnabled(boolean arg0, `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)` arg1) `                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                                     | ` shouldShowRequestPermissionRationale(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                     | ` shouldUpRecreateTask(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                     | ` showAssist(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                                                                                                       | | ` final boolean`                                                                                               | ` showDialog(int arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                             | | ` final void`                                                                                                  | ` showDialog(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                        | ` showLockTaskEscapeMessage() `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                          | ` startActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                            | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                          | ` startActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0) `                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                        | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                          | | ` void`                                                                                                        | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                        | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                        | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                              | | ` void`                                                                                                        | ` startActivityForResult(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                        | ` startActivityForResult(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                                                                                                           | | ` void`                                                                                                        | ` startActivityFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2) `                                                                                                                                                                                                                      | | ` void`                                                                                                        | ` startActivityFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg3) `                                                                                                                                     | | ` void`                                                                                                        | ` startActivityFromFragment(`[Fragment](https://developer.android.com/reference/android/app/Fragment.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg3) `                                                                                                                                  | | ` void`                                                                                                        | ` startActivityFromFragment(`[Fragment](https://developer.android.com/reference/android/app/Fragment.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2) `                                                                                                                                                                                                                   | | ` boolean`                                                                                                     | ` startActivityIfNeeded(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                                                                                                            | | ` boolean`                                                                                                     | ` startActivityIfNeeded(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                        | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                           | | ` void`                                                                                                        | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                          | | ` void`                                                                                                        | ` startIntentSenderForResult(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, int arg1, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg2, int arg3, int arg4, int arg5) `                                                                                                                                                                        | | ` void`                                                                                                        | ` startIntentSenderForResult(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, int arg1, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg2, int arg3, int arg4, int arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `                                                                                       | | ` void`                                                                                                        | ` startIntentSenderFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, `[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg1, int arg2, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg3, int arg4, int arg5, int arg6, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg7) ` | | ` void`                                                                                                        | ` startIntentSenderFromChild(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, `[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg1, int arg2, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg3, int arg4, int arg5, int arg6) `                                                                                  | | ` void`                                                                                                        | ` startLocalVoiceInteraction(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` startLockTask() `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                        | ` startManagingCursor(`[Cursor](https://developer.android.com/reference/android/database/Cursor.html)` arg0) `                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                     | ` startNextMatchingActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                  | | ` boolean`                                                                                                     | ` startNextMatchingActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                        | ` startPostponedEnterTransition() `                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                        | ` startSearch(String arg0, boolean arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2, boolean arg3) `                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                        | ` stopLocalVoiceInteraction() `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` stopLockTask() `                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                        | ` stopManagingCursor(`[Cursor](https://developer.android.com/reference/android/database/Cursor.html)` arg0) `                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                        | ` takeKeyEvents(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` triggerSearch(String arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                        | ` unregisterForContextMenu(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                                                                                                                                                           | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` `[android.view.ContextThemeWrapper](https://developer.android.com/reference/android/view/ContextThemeWrapper.html)` ` |--------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                | ` applyOverrideConfiguration(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                       | | ` void`                                                                                                | ` attachBaseContext(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0) `                                                | | ` `[AssetManager](https://developer.android.com/reference/android/content/res/AssetManager.html)       | ` getAssets() `                                                                                                                                              | | ` `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)             | ` getResources() `                                                                                                                                           | | ` Object`                                                                                              | ` getSystemService(String arg0) `                                                                                                                            | | ` `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html) | ` getTheme() `                                                                                                                                               | | ` void`                                                                                                | ` onApplyThemeResource(`[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg0, int arg1, boolean arg2) ` | | ` void`                                                                                                | ` setTheme(int arg0) `                                                                                                                                       | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` `[android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html)` ` |----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                  | ` attachBaseContext(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                               | ` bindService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                       | | ` int`                                                                                                   | ` checkCallingOrSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` int`                                                                                                   | ` checkCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` int`                                                                                                   | ` checkCallingPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                                   | ` checkCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                                   | ` checkPermission(String arg0, int arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                                   | ` checkSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5) `                                                                                                                                                                                                                                                                                                                                                                        | | ` int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                  | ` clearWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createConfigurationContext(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createContextForSplit(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDeviceProtectedStorageContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDisplayContext(`[Display](https://developer.android.com/reference/android/view/Display.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createPackageContext(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` String[]`                                                                                              | ` databaseList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                               | ` deleteDatabase(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` boolean`                                                                                               | ` deleteFile(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                               | ` deleteSharedPreferences(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                  | ` enforceCallingOrSelfPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                  | ` enforceCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                  | ` enforceCallingPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                  | ` enforceCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                  | ` enforcePermission(String arg0, int arg1, int arg2, String arg3) `                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5, String arg6) `                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3, String arg4) `                                                                                                                                                                                                                                                                                                                                                                                   | | ` String[]`                                                                                              | ` fileList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` getApplicationContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo.html)    | ` getApplicationInfo() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[AssetManager](https://developer.android.com/reference/android/content/res/AssetManager.html)         | ` getAssets() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` getBaseContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` File`                                                                                                  | ` getCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` ClassLoader`                                                                                           | ` getClassLoader() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` File`                                                                                                  | ` getCodeCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html)       | ` getContentResolver() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` File`                                                                                                  | ` getDataDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` File`                                                                                                  | ` getDatabasePath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` File`                                                                                                  | ` getDir(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` File`                                                                                                  | ` getExternalCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` File[]`                                                                                                | ` getExternalCacheDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` File`                                                                                                  | ` getExternalFilesDir(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` File[]`                                                                                                | ` getExternalFilesDirs(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` File[]`                                                                                                | ` getExternalMediaDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` File`                                                                                                  | ` getFileStreamPath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` File`                                                                                                  | ` getFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` Executor`                                                                                              | ` getMainExecutor() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[Looper](https://developer.android.com/reference/android/os/Looper.html)                              | ` getMainLooper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` File`                                                                                                  | ` getNoBackupFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` File`                                                                                                  | ` getObbDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` File[]`                                                                                                | ` getObbDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` String`                                                                                                | ` getPackageCodePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager.html)      | ` getPackageManager() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` String`                                                                                                | ` getPackageName() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` String`                                                                                                | ` getPackageResourcePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)               | ` getResources() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html)   | ` getSharedPreferences(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` Object`                                                                                                | ` getSystemService(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` String`                                                                                                | ` getSystemServiceName(Class<?> arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)   | ` getTheme() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` getWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` int`                                                                                                   | ` getWallpaperDesiredMinimumHeight() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` int`                                                                                                   | ` getWallpaperDesiredMinimumWidth() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                  | ` grantUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                               | ` isDeviceProtectedStorage() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                               | ` isRestricted() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                               | ` moveDatabaseFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                               | ` moveSharedPreferencesFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` FileInputStream`                                                                                       | ` openFileInput(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` FileOutputStream`                                                                                      | ` openFileOutput(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2, `[DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler.html)` arg3) `                                                                                                                                                                                                                      | | ` `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2) `                                                                                                                                                                                                                                                                                                                                         | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` peekWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1) `                                                                                                                                                                                                                                                                                                | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                      | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4) `                                                                                                                                                                                      | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3) `                                                                                                                                                                                                | | ` void`                                                                                                  | ` removeStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                  | ` removeStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                  | ` revokeUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                  | ` revokeUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2) `                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `                                                                                                | | ` void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                  | ` sendOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg3, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg4, int arg5, String arg6, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg7) ` | | ` void`                                                                                                  | ` sendStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                  | ` sendStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                  | ` sendStickyOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg1, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg2, int arg3, String arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                       | | ` void`                                                                                                  | ` sendStickyOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `        | | ` void`                                                                                                  | ` setTheme(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                  | ` setWallpaper(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                  | ` setWallpaper(InputStream arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                          | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startForegroundService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` boolean`                                                                                               | ` startInstrumentation(`[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)` arg0, String arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                                                                                                                      | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                               | ` stopService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                  | ` unbindService(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                  | ` unregisterReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` `[android.content.Context](https://developer.android.com/reference/android/content/Context.html)` ` |-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean`                                                                                               | ` bindService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                       | | ` abstract int`                                                                                                   | ` checkCallingOrSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract int`                                                                                                   | ` checkCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract int`                                                                                                   | ` checkCallingPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract int`                                                                                                   | ` checkCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract int`                                                                                                   | ` checkPermission(String arg0, int arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract int`                                                                                                   | ` checkSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5) `                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                                  | ` clearWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createConfigurationContext(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createContextForSplit(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDeviceProtectedStorageContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDisplayContext(`[Display](https://developer.android.com/reference/android/view/Display.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createPackageContext(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract String[]`                                                                                              | ` databaseList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract boolean`                                                                                               | ` deleteDatabase(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract boolean`                                                                                               | ` deleteFile(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract boolean`                                                                                               | ` deleteSharedPreferences(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract void`                                                                                                  | ` enforceCallingOrSelfPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                  | ` enforceCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract void`                                                                                                  | ` enforceCallingPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                                  | ` enforceCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract void`                                                                                                  | ` enforcePermission(String arg0, int arg1, int arg2, String arg3) `                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5, String arg6) `                                                                                                                                                                                                                                                                                                                                                         | | ` abstract void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3, String arg4) `                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract String[]`                                                                                              | ` fileList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` getApplicationContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract `[ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo.html)    | ` getApplicationInfo() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[AssetManager](https://developer.android.com/reference/android/content/res/AssetManager.html)         | ` getAssets() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract File`                                                                                                  | ` getCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract ClassLoader`                                                                                           | ` getClassLoader() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract File`                                                                                                  | ` getCodeCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` final int`                                                                                                      | ` getColor(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` final `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)        | ` getColorStateList(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract `[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html)       | ` getContentResolver() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract File`                                                                                                  | ` getDataDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract File`                                                                                                  | ` getDatabasePath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract File`                                                                                                  | ` getDir(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)              | ` getDrawable(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract File`                                                                                                  | ` getExternalCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract File[]`                                                                                                | ` getExternalCacheDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract File`                                                                                                  | ` getExternalFilesDir(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract File[]`                                                                                                | ` getExternalFilesDirs(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract File[]`                                                                                                | ` getExternalMediaDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract File`                                                                                                  | ` getFileStreamPath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract File`                                                                                                  | ` getFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` Executor`                                                                                                       | ` getMainExecutor() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[Looper](https://developer.android.com/reference/android/os/Looper.html)                              | ` getMainLooper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract File`                                                                                                  | ` getNoBackupFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract File`                                                                                                  | ` getObbDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract File[]`                                                                                                | ` getObbDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract String`                                                                                                | ` getPackageCodePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager.html)      | ` getPackageManager() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract String`                                                                                                | ` getPackageName() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract String`                                                                                                | ` getPackageResourcePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)               | ` getResources() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract `[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html)   | ` getSharedPreferences(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` final String`                                                                                                   | ` getString(int arg0, Object... arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final String`                                                                                                   | ` getString(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final <T> T`                                                                                                    | ` getSystemService(Class<T> arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract Object`                                                                                                | ` getSystemService(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract String`                                                                                                | ` getSystemServiceName(Class<?> arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final CharSequence`                                                                                             | ` getText(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)   | ` getTheme() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` getWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract int`                                                                                                   | ` getWallpaperDesiredMinimumHeight() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract int`                                                                                                   | ` getWallpaperDesiredMinimumWidth() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract void`                                                                                                  | ` grantUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract boolean`                                                                                               | ` isDeviceProtectedStorage() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                        | ` isRestricted() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract boolean`                                                                                               | ` moveDatabaseFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract boolean`                                                                                               | ` moveSharedPreferencesFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg0, int[] arg1) `                                                                                                                                                                                                                                                                                                                                                                                             | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg0, int[] arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                                                                         | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(int arg0, int[] arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(int[] arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract FileInputStream`                                                                                       | ` openFileInput(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract FileOutputStream`                                                                                      | ` openFileOutput(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2, `[DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler.html)` arg3) `                                                                                                                                                                                                                      | | ` abstract `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2) `                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` peekWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                           | ` registerComponentCallbacks(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1) `                                                                                                                                                                                                                                                                                                | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                      | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4) `                                                                                                                                                                                      | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3) `                                                                                                                                                                                                | | ` abstract void`                                                                                                  | ` removeStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract void`                                                                                                  | ` removeStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                    | | ` abstract void`                                                                                                  | ` revokeUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract void`                                                                                                  | ` revokeUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2) `                                                                                                                                                                                                                                                                                                               | | ` abstract void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `                                                                                                | | ` abstract void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                  | ` sendOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg3, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg4, int arg5, String arg6, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg7) ` | | ` abstract void`                                                                                                  | ` sendStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract void`                                                                                                  | ` sendStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                  | ` sendStickyOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg1, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg2, int arg3, String arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                       | | ` abstract void`                                                                                                  | ` sendStickyOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `        | | ` abstract void`                                                                                                  | ` setTheme(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                                  | ` setWallpaper(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                                  | ` setWallpaper(InputStream arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startForegroundService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract boolean`                                                                                               | ` startInstrumentation(`[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)` arg0, String arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                                                                                                                                                                                        | | ` abstract void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                                                                                                                      | | ` abstract `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract boolean`                                                                                               | ` stopService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract void`                                                                                                  | ` unbindService(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                           | ` unregisterComponentCallbacks(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract void`                                                                                                  | ` unregisterReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` android.arch.lifecycle.ViewModelStoreOwner ` |----------------------------|-------------------------| | ` abstract ViewModelStore` | ` getViewModelStore() ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.support.v4.app.ActivityCompat.OnRequestPermissionsResultCallback](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.OnRequestPermissionsResultCallback)` ` |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[onRequestPermissionsResult](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.OnRequestPermissionsResultCallback#onRequestPermissionsResult(int, java.lang.String[], int[]))`(int requestCode, String[] permissions, int[] grantResults) ` Callback for the result from requesting permissions. | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` android.arch.lifecycle.LifecycleOwner ` |-----------------------|--------------------| | ` abstract Lifecycle` | ` getLifecycle() ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.view.LayoutInflater.Factory2](https://developer.android.com/reference/android/view/LayoutInflater.Factory2.html)` ` |------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[View](https://developer.android.com/reference/android/view/View.html) | ` onCreateView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, String arg1, `[Context](https://developer.android.com/reference/android/content/Context.html)` arg2, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg3) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.view.Window.Callback](https://developer.android.com/reference/android/view/Window.Callback.html)` ` |------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean`                                                                            | ` dispatchGenericMotionEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                    | | ` abstract boolean`                                                                            | ` dispatchKeyEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                    | | ` abstract boolean`                                                                            | ` dispatchKeyShortcutEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                            | | ` abstract boolean`                                                                            | ` dispatchPopulateAccessibilityEvent(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg0) `                                                                                | | ` abstract boolean`                                                                            | ` dispatchTouchEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                            | | ` abstract boolean`                                                                            | ` dispatchTrackballEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                        | | ` abstract void`                                                                               | ` onActionModeFinished(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)` arg0) `                                                                                                                            | | ` abstract void`                                                                               | ` onActionModeStarted(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)` arg0) `                                                                                                                             | | ` abstract void`                                                                               | ` onAttachedToWindow() `                                                                                                                                                                                                                       | | ` abstract void`                                                                               | ` onContentChanged() `                                                                                                                                                                                                                         | | ` abstract boolean`                                                                            | ` onCreatePanelMenu(int arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1) `                                                                                                                                 | | ` abstract `[View](https://developer.android.com/reference/android/view/View.html)             | ` onCreatePanelView(int arg0) `                                                                                                                                                                                                                | | ` abstract void`                                                                               | ` onDetachedFromWindow() `                                                                                                                                                                                                                     | | ` abstract boolean`                                                                            | ` onMenuItemSelected(int arg0, `[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` arg1) `                                                                                                                        | | ` abstract boolean`                                                                            | ` onMenuOpened(int arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1) `                                                                                                                                      | | ` abstract void`                                                                               | ` onPanelClosed(int arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1) `                                                                                                                                     | | ` default void`                                                                                | ` onPointerCaptureChanged(boolean arg0) `                                                                                                                                                                                                      | | ` abstract boolean`                                                                            | ` onPreparePanel(int arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg2) `                                                     | | ` default void`                                                                                | ` onProvideKeyboardShortcuts(List<`[KeyboardShortcutGroup](https://developer.android.com/reference/android/view/KeyboardShortcutGroup.html)`> arg0, `[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg1, int arg2) ` | | ` abstract boolean`                                                                            | ` onSearchRequested() `                                                                                                                                                                                                                        | | ` abstract boolean`                                                                            | ` onSearchRequested(`[SearchEvent](https://developer.android.com/reference/android/view/SearchEvent.html)` arg0) `                                                                                                                             | | ` abstract void`                                                                               | ` onWindowAttributesChanged(`[WindowManager.LayoutParams](https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html)` arg0) `                                                                                       | | ` abstract void`                                                                               | ` onWindowFocusChanged(boolean arg0) `                                                                                                                                                                                                         | | ` abstract `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html) | ` onWindowStartingActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0) `                                                                                                    | | ` abstract `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html) | ` onWindowStartingActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0, int arg1) `                                                                                          | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.view.KeyEvent.Callback](https://developer.android.com/reference/android/view/KeyEvent.Callback.html)` ` |---------------------|------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean` | ` onKeyDown(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `               | | ` abstract boolean` | ` onKeyLongPress(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `          | | ` abstract boolean` | ` onKeyMultiple(int arg0, int arg1, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg2) ` | | ` abstract boolean` | ` onKeyUp(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                 | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.view.View.OnCreateContextMenuListener](https://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html)` ` |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` onCreateContextMenu(`[ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, `[ContextMenu.ContextMenuInfo](https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html)` arg2) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2.html)` ` |------------------|----------------------------| | ` abstract void` | ` onTrimMemory(int arg0) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.support.v7.app.AppCompatCallback](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback)` ` |------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void`                                                                                     | ` `[onSupportActionModeFinished](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback#onSupportActionModeFinished(android.support.v7.view.ActionMode))`(`[ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode)` mode) ` Called when a support action mode has finished.                                                                | | ` abstract void`                                                                                     | ` `[onSupportActionModeStarted](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback#onSupportActionModeStarted(android.support.v7.view.ActionMode))`(`[ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode)` mode) ` Called when a support action mode has been started.                                                              | | ` abstract `[ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode) | ` `[onWindowStartingSupportActionMode](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback#onWindowStartingSupportActionMode(android.support.v7.view.ActionMode.Callback))`(`[ActionMode.Callback](https://developer.android.com/reference/android/support/v7/view/ActionMode.Callback)` callback) ` Called when a support action mode is being started for this window. | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.support.v4.app.TaskStackBuilder.SupportParentable](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.SupportParentable)` ` |-------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html) | ` `[getSupportParentActivityIntent](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.SupportParentable#getSupportParentActivityIntent())`() ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.support.v7.app.ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.DelegateProvider)` ` |---------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate) | ` `[getDrawerToggleDelegate](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.DelegateProvider#getDrawerToggleDelegate())`() ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.view.LayoutInflater.Factory](https://developer.android.com/reference/android/view/LayoutInflater.Factory.html)` ` |------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[View](https://developer.android.com/reference/android/view/View.html) | ` onCreateView(String arg0, `[Context](https://developer.android.com/reference/android/content/Context.html)` arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#)From interface` `[android.content.ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html)` ` |------------------|------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` onConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) ` | | ` abstract void` | ` onLowMemory() `                                                                                                                  | ||

## Public constructors

### AppCompatActivity

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatActivity ()
```

<br />

<br />

## Public methods

### addContentView

```
void addContentView (View view, 
                ViewGroup.LayoutParams params)
```

<br />

<br />

|                Parameters                 ||
|----------|---------------------------------|
| `view`   | `View` <br />                   |
| `params` | `ViewGroup.LayoutParams` <br /> |

### closeOptionsMenu

```
void closeOptionsMenu ()
```

<br />

<br />

### dispatchKeyEvent

```
boolean dispatchKeyEvent (KeyEvent event)
```

<br />

<br />

|         Parameters         ||
|---------|-------------------|
| `event` | `KeyEvent` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### findViewById

```
T findViewById (int id)
```

<br />

<br />

|     Parameters     ||
|------|--------------|
| `id` | `int` <br /> |

|   Returns   ||
|-----|--------|
| `T` | <br /> |

### getDelegate

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatDelegate getDelegate ()
```

<br />

<br />

|                                                                                                                      Returns                                                                                                                       ||
|-------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
| [AppCompatDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate) | The[AppCompatDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate)being used by this Activity. <br /> |

### getDrawerToggleDelegate

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ActionBarDrawerToggle.Delegate getDrawerToggleDelegate ()
```

<br />

<br />

|                                                                 Returns                                                                 ||
|---------------------------------------------------------------------------------------------------------------------------------|--------|
| [ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate) | <br /> |

### getMenuInflater

```
MenuInflater getMenuInflater ()
```

<br />

<br />

|                                            Returns                                             ||
|----------------------------------------------------------------------------------------|--------|
| [MenuInflater](https://developer.android.com/reference/android/view/MenuInflater.html) | <br /> |

### getResources

```
Resources getResources ()
```

<br />

<br />

|                                             Returns                                             ||
|-----------------------------------------------------------------------------------------|--------|
| [Resources](https://developer.android.com/reference/android/content/res/Resources.html) | <br /> |

### getSupportActionBar

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ActionBar getSupportActionBar ()
```

Support library version of[getActionBar()](https://developer.android.com/reference/android/app/Activity.html#getActionBar()).

Retrieve a reference to this activity's ActionBar.

<br />

|                                                                         Returns                                                                          ||
|---------------------------------------------------------------------------------------|-------------------------------------------------------------------|
| [ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar) | The Activity's ActionBar, or null if it does not have one. <br /> |

### getSupportParentActivityIntent

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Intent getSupportParentActivityIntent ()
```

Obtain an[Intent](https://developer.android.com/reference/android/content/Intent.html)that will launch an explicit target activity specified by sourceActivity's[PARENT_ACTIVITY](https://developer.android.com/reference/android/support/v4/app/NavUtils#PARENT_ACTIVITY)\<meta-data\> element in the application's manifest. If the device is running Jellybean or newer, the android:parentActivityName attribute will be preferred if it is present.

<br />

|                                                                          Returns                                                                           ||
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | a new Intent targeting the defined parent activity of sourceActivity <br /> |

### invalidateOptionsMenu

```
void invalidateOptionsMenu ()
```

<br />

<br />

### onConfigurationChanged

```
void onConfigurationChanged (Configuration newConfig)
```

Dispatch configuration change to all fragments.

<br />

|             Parameters              ||
|-------------|------------------------|
| `newConfig` | `Configuration` <br /> |

### onContentChanged

```
void onContentChanged ()
```

<br />

<br />

### onCreateSupportNavigateUpTaskStack

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onCreateSupportNavigateUpTaskStack (TaskStackBuilder builder)
```

Support version of[onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)](https://developer.android.com/reference/android/app/Activity.html#onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)). This method will be called on all platform versions. Define the synthetic task stack that will be generated during Up navigation from a different task.

The default implementation of this method adds the parent chain of this activity as specified in the manifest to the supplied[TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder). Applications may choose to override this method to construct the desired task stack in a different way.

This method will be invoked by the default implementation of[onNavigateUp()](https://developer.android.com/reference/android/app/Activity.html#onNavigateUp())if[shouldUpRecreateTask(android.content.Intent)](https://developer.android.com/reference/android/app/Activity.html#shouldUpRecreateTask(android.content.Intent))returns true when supplied with the intent returned by[getParentActivityIntent()](https://developer.android.com/reference/android/app/Activity.html#getParentActivityIntent()).

Applications that wish to supply extra Intent parameters to the parent stack defined by the manifest should override[onPrepareSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onPrepareSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder)).

<br />

<br />

|                                                                Parameters                                                                ||
|-----------|-------------------------------------------------------------------------------------------------------------------------------|
| `builder` | `TaskStackBuilder`: An empty TaskStackBuilder - the application should add intents representing the desired task stack <br /> |

### onKeyDown

```
boolean onKeyDown (int keyCode, 
                KeyEvent event)
```

<br />

<br />

|          Parameters          ||
|-----------|-------------------|
| `keyCode` | `int` <br />      |
| `event`   | `KeyEvent` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### onMenuItemSelected

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean onMenuItemSelected (int featureId, 
                MenuItem item)
```

Dispatch context and options menu to fragments.

<br />

|           Parameters           ||
|-------------|-------------------|
| `featureId` | `int` <br />      |
| `item`      | `MenuItem` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### onMenuOpened

```
boolean onMenuOpened (int featureId, 
                Menu menu)
```

<br />

Please note: AppCompat uses its own feature id for the action bar:[FEATURE_SUPPORT_ACTION_BAR](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate#FEATURE_SUPPORT_ACTION_BAR).

<br />

<br />

|         Parameters         ||
|-------------|---------------|
| `featureId` | `int` <br />  |
| `menu`      | `Menu` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### onPanelClosed

```
void onPanelClosed (int featureId, 
                Menu menu)
```

Call onOptionsMenuClosed() on fragments.

Please note: AppCompat uses its own feature id for the action bar:[FEATURE_SUPPORT_ACTION_BAR](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate#FEATURE_SUPPORT_ACTION_BAR).

<br />

<br />

|         Parameters         ||
|-------------|---------------|
| `featureId` | `int` <br />  |
| `menu`      | `Menu` <br /> |

### onPrepareSupportNavigateUpTaskStack

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onPrepareSupportNavigateUpTaskStack (TaskStackBuilder builder)
```

Support version of[onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)](https://developer.android.com/reference/android/app/Activity.html#onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)). This method will be called on all platform versions. Prepare the synthetic task stack that will be generated during Up navigation from a different task.

This method receives the[TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)with the constructed series of Intents as generated by[onCreateSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onCreateSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder)). If any extra data should be added to these intents before launching the new task, the application should override this method and add that data here.

<br />

<br />

|                                                          Parameters                                                           ||
|-----------|--------------------------------------------------------------------------------------------------------------------|
| `builder` | `TaskStackBuilder`: A TaskStackBuilder that has been populated with Intents by onCreateNavigateUpTaskStack. <br /> |

### onSupportActionModeFinished

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onSupportActionModeFinished (ActionMode mode)
```

Notifies the activity that a support action mode has finished. Activity subclasses overriding this method should call the superclass implementation.

<br />

|                            Parameters                            ||
|--------|----------------------------------------------------------|
| `mode` | `ActionMode`: The action mode that just finished. <br /> |

### onSupportActionModeStarted

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onSupportActionModeStarted (ActionMode mode)
```

Notifies the Activity that a support action mode has been started. Activity subclasses overriding this method should call the superclass implementation.

<br />

|                    Parameters                     ||
|--------|-------------------------------------------|
| `mode` | `ActionMode`: The new action mode. <br /> |

### onSupportContentChanged

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onSupportContentChanged ()
```

<br />

**This method was deprecated in API level 25.1.0.**   
Use[onContentChanged()](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onContentChanged())instead.

<br />

<br />

### onSupportNavigateUp

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean onSupportNavigateUp ()
```

This method is called whenever the user chooses to navigate Up within your application's activity hierarchy from the action bar.

If a parent was specified in the manifest for this activity or an activity-alias to it, default Up navigation will be handled automatically. See[getSupportParentActivityIntent()](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getSupportParentActivityIntent())for how to specify the parent. If any activity along the parent chain requires extra Intent arguments, the Activity subclass should override the method[onPrepareSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#onPrepareSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder))to supply those arguments.

See[Tasks and Back Stack](https://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack)from the developer guide and[Navigation](https://developer.android.com/design/patterns/navigation)from the design guide for more information about navigating within your app.

See the[TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)class and the Activity methods[getSupportParentActivityIntent()](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#getSupportParentActivityIntent()),[supportShouldUpRecreateTask(android.content.Intent)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportShouldUpRecreateTask(android.content.Intent)), and[supportNavigateUpTo(android.content.Intent)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportNavigateUpTo(android.content.Intent))for help implementing custom Up navigation.

<br />

<br />

|                                                     Returns                                                     ||
|-----------|------------------------------------------------------------------------------------------------------|
| `boolean` | true if Up navigation completed successfully and this Activity was finished, false otherwise. <br /> |

### onWindowStartingSupportActionMode

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ActionMode onWindowStartingSupportActionMode (ActionMode.Callback callback)
```

Called when a support action mode is being started for this window. Gives the callback an opportunity to handle the action mode in its own unique and beautiful way. If this method returns null the system can choose a way to present the mode or choose not to start the mode at all.

<br />

|                                           Parameters                                            ||
|------------|-------------------------------------------------------------------------------------|
| `callback` | `ActionMode.Callback`: Callback to control the lifecycle of this action mode <br /> |

|                                                                                  Returns                                                                                  ||
|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode) | The ActionMode that was started, or null if the system should present it <br /> |

### openOptionsMenu

```
void openOptionsMenu ()
```

<br />

<br />

### setContentView

```
void setContentView (View view)
```

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

### setContentView

```
void setContentView (int layoutResID)
```

<br />

<br />

|         Parameters          ||
|---------------|--------------|
| `layoutResID` | `int` <br /> |

### setContentView

```
void setContentView (View view, 
                ViewGroup.LayoutParams params)
```

<br />

<br />

|                Parameters                 ||
|----------|---------------------------------|
| `view`   | `View` <br />                   |
| `params` | `ViewGroup.LayoutParams` <br /> |

### setSupportActionBar

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSupportActionBar (Toolbar toolbar)
```

Set a[Toolbar](https://developer.android.com/reference/android/widget/Toolbar.html)to act as the[ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)for this Activity window.

When set to a non-null value the[getActionBar()](https://developer.android.com/reference/android/app/Activity.html#getActionBar())method will return an[ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)object that can be used to control the given toolbar as if it were a traditional window decor action bar. The toolbar's menu will be populated with the Activity's options menu and the navigation button will be wired through the standard[home](https://developer.android.com/reference/android/R.id#home)menu select action.

In order to use a Toolbar within the Activity's window content the application must not request the window feature[FEATURE_SUPPORT_ACTION_BAR](https://developer.android.com/reference/android/view/Window.html#FEATURE_ACTION_BAR).

<br />

<br />

|                                          Parameters                                           ||
|-----------|------------------------------------------------------------------------------------|
| `toolbar` | `Toolbar`: Toolbar to set as the Activity's action bar, or`null`to clear it <br /> |

### setSupportProgress

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSupportProgress (int progress)
```

<br />

**This method was deprecated in API level 25.1.0.**   
Progress bars are no longer provided in AppCompat.

<br />

<br />

|        Parameters        ||
|------------|--------------|
| `progress` | `int` <br /> |

### setSupportProgressBarIndeterminate

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSupportProgressBarIndeterminate (boolean indeterminate)
```

<br />

**This method was deprecated in API level 25.1.0.**   
Progress bars are no longer provided in AppCompat.

<br />

<br />

|            Parameters             ||
|-----------------|------------------|
| `indeterminate` | `boolean` <br /> |

### setSupportProgressBarIndeterminateVisibility

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSupportProgressBarIndeterminateVisibility (boolean visible)
```

<br />

**This method was deprecated in API level 25.1.0.**   
Progress bars are no longer provided in AppCompat.

<br />

<br />

|         Parameters          ||
|-----------|------------------|
| `visible` | `boolean` <br /> |

### setSupportProgressBarVisibility

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSupportProgressBarVisibility (boolean visible)
```

<br />

**This method was deprecated in API level 25.1.0.**   
Progress bars are no longer provided in AppCompat.

<br />

<br />

|         Parameters          ||
|-----------|------------------|
| `visible` | `boolean` <br /> |

### setTheme

```
void setTheme (int resid)
```

<br />

<br />

|      Parameters       ||
|---------|--------------|
| `resid` | `int` <br /> |

### startSupportActionMode

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ActionMode startSupportActionMode (ActionMode.Callback callback)
```

Start an action mode.

<br />

|                                                 Parameters                                                 ||
|------------|------------------------------------------------------------------------------------------------|
| `callback` | `ActionMode.Callback`: Callback that will manage lifecycle events for this context mode <br /> |

|                                                                            Returns                                                                            ||
|------------------------------------------------------------------------------------------|---------------------------------------------------------------------|
| [ActionMode](https://developer.android.com/reference/android/support/v7/view/ActionMode) | The ContextMode that was started, or null if it was canceled <br /> |

### supportInvalidateOptionsMenu

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void supportInvalidateOptionsMenu ()
```

<br />

**This method is deprecated.**   
Call[invalidateOptionsMenu()](https://developer.android.com/reference/android/app/Activity.html#invalidateOptionsMenu())directly.

Support library version of[invalidateOptionsMenu()](https://developer.android.com/reference/android/app/Activity.html#invalidateOptionsMenu()).

Invalidate the activity's options menu. This will cause relevant presentations of the menu to fully update via calls to onCreateOptionsMenu and onPrepareOptionsMenu the next time the menu is requested.

<br />

### supportNavigateUpTo

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void supportNavigateUpTo (Intent upIntent)
```

Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity in the process. upIntent will have the flag[FLAG_ACTIVITY_CLEAR_TOP](https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP)set by this method, along with any others required for proper up navigation as outlined in the Android Design Guide.

This method should be used when performing up navigation from within the same task as the destination. If up navigation should cross tasks in some cases, see[supportShouldUpRecreateTask(android.content.Intent)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportShouldUpRecreateTask(android.content.Intent)).

<br />

<br />

|                                          Parameters                                          ||
|------------|----------------------------------------------------------------------------------|
| `upIntent` | `Intent`: An intent representing the target destination for up navigation <br /> |

### supportRequestWindowFeature

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean supportRequestWindowFeature (int featureId)
```

Enable extended support library window features.

This is a convenience for calling[getWindow().requestFeature()](https://developer.android.com/reference/android/view/Window.html#requestFeature(int)).

<br />

<br />

|                                                                                                              Parameters                                                                                                               ||
|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `featureId` | `int`: The desired feature as defined in[Window](https://developer.android.com/reference/android/view/Window.html)or[WindowCompat](https://developer.android.com/reference/android/support/v4/view/WindowCompat). <br /> |

|                                        Returns                                        ||
|-----------|----------------------------------------------------------------------------|
| `boolean` | Returns true if the requested feature is supported and now enabled. <br /> |

**See also:**

- [requestWindowFeature(int)](https://developer.android.com/https://developer.android.com/reference/android/app/Activity#requestWindowFeature(int))
- [requestFeature(int)](https://developer.android.com/https://developer.android.com/reference/android/view/Window#requestFeature(int))  

### supportShouldUpRecreateTask

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean supportShouldUpRecreateTask (Intent targetIntent)
```

Returns true if sourceActivity should recreate the task when navigating 'up' by using targetIntent.

If this method returns false the app can trivially call[supportNavigateUpTo(android.content.Intent)](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity#supportNavigateUpTo(android.content.Intent))using the same parameters to correctly perform up navigation. If this method returns false, the app should synthesize a new task stack by using[TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)or another similar mechanism to perform up navigation.

<br />

<br />

|                                            Parameters                                            ||
|----------------|----------------------------------------------------------------------------------|
| `targetIntent` | `Intent`: An intent representing the target destination for up navigation <br /> |

|                                                               Returns                                                               ||
|-----------|--------------------------------------------------------------------------------------------------------------------------|
| `boolean` | true if navigating up should recreate a new task stack, false if the same task should be used for the destination <br /> |

## Protected methods

### onCreate

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

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

Perform initialization of all fragments.

<br />

|              Parameters               ||
|----------------------|-----------------|
| `savedInstanceState` | `Bundle` <br /> |

### onDestroy

```
void onDestroy ()
```

Destroy all fragments.

<br />

### onPostCreate

```
void onPostCreate (Bundle savedInstanceState)
```

<br />

<br />

|              Parameters               ||
|----------------------|-----------------|
| `savedInstanceState` | `Bundle` <br /> |

### onPostResume

```
void onPostResume ()
```

Dispatch onResume() to fragments.

<br />

### onSaveInstanceState

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onSaveInstanceState (Bundle outState)
```

Save all appropriate fragment state.

<br />

|         Parameters          ||
|------------|-----------------|
| `outState` | `Bundle` <br /> |

### onStart

```
void onStart ()
```

Dispatch onStart() to all fragments.

<br />

### onStop

```
void onStop ()
```

Dispatch onStop() to all fragments.

<br />

### onTitleChanged

```
void onTitleChanged (CharSequence title, 
                int color)
```

<br />

<br />

|           Parameters           ||
|---------|-----------------------|
| `title` | `CharSequence` <br /> |
| `color` | `int` <br />          |

-

  ## Interfaces

  - [ActionBar.OnMenuVisibilityListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.OnMenuVisibilityListener)
  - [ActionBar.OnNavigationListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.OnNavigationListener)
  - [ActionBar.TabListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.TabListener)
  - [ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate)
  - [ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.DelegateProvider)
  - [AppCompatCallback](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback)
-

  ## Classes

  - [ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)
  - [ActionBar.LayoutParams](https://developer.android.com/reference/android/support/v7/app/ActionBar.LayoutParams)
  - [ActionBar.Tab](https://developer.android.com/reference/android/support/v7/app/ActionBar.Tab)
  - [ActionBarDrawerToggle](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle)
  - [AlertDialog](https://developer.android.com/reference/android/support/v7/app/AlertDialog)
  - [AlertDialog.Builder](https://developer.android.com/reference/android/support/v7/app/AlertDialog.Builder)
  - [AppCompatActivity](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity)
  - [AppCompatDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate)
  - [AppCompatDialog](https://developer.android.com/reference/android/support/v7/app/AppCompatDialog)
  - [AppCompatDialogFragment](https://developer.android.com/reference/android/support/v7/app/AppCompatDialogFragment)
  - [AppCompatViewInflater](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater)
  - [MediaRouteActionProvider](https://developer.android.com/reference/android/support/v7/app/MediaRouteActionProvider)
  - [MediaRouteButton](https://developer.android.com/reference/android/support/v7/app/MediaRouteButton)
  - [MediaRouteChooserDialog](https://developer.android.com/reference/android/support/v7/app/MediaRouteChooserDialog)
  - [MediaRouteChooserDialogFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteChooserDialogFragment)
  - [MediaRouteControllerDialog](https://developer.android.com/reference/android/support/v7/app/MediaRouteControllerDialog)
  - [MediaRouteControllerDialogFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteControllerDialogFragment)
  - [MediaRouteDialogFactory](https://developer.android.com/reference/android/support/v7/app/MediaRouteDialogFactory)
  - [MediaRouteDiscoveryFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteDiscoveryFragment)