# ActivityInfoCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/content/pm/ActivityInfoCompat.java+class:androidx.core.content.pm.ActivityInfoCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public final class ActivityInfoCompat
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use `https://developer.android.com/reference/android/content/pm/ActivityInfo.html` directly.

Helper for accessing features in `https://developer.android.com/reference/android/content/pm/ActivityInfo.html`.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/core/content/pm/ActivityInfoCompat#CONFIG_UI_MODE() = 512` **This field is deprecated.** Use `https://developer.android.com/reference/android/content/pm/ActivityInfo.html#CONFIG_UI_MODE` directly. <br /> |

## Constants

### CONFIG_UI_MODE

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

```
public static final int CONFIG_UI_MODE = 512
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/android/content/pm/ActivityInfo.html#CONFIG_UI_MODE` directly.

Bit in ActivityInfo#configChanges that indicates that the activity can itself handle the ui mode. Set from the `https://developer.android.com/reference/android/R.attr.html#configChanges` attribute.