Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#pubctors) \| [Methods](https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#inhmethods)

# ArchivedActivityInfo

*** ** * ** ***

` public final class ArchivedActivityInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.content.pm.ArchivedActivityInfo |

<br />

*** ** * ** ***

Contains fields required to show archived package in Launcher.
**See also:**

- `https://developer.android.com/reference/android/content/pm/ArchivedPackageInfo`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#ArchivedActivityInfo(java.lang.CharSequence,%20android.content.ComponentName)(https://developer.android.com/reference/java/lang/CharSequence label, https://developer.android.com/reference/android/content/ComponentName componentName) ` |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/content/ComponentName` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#getComponentName()() ` The component name of this activity. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#getIcon()() ` Icon of the activity in the app's locale. |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#getLabel()() ` The label for the activity. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#getMonochromeIcon()() ` Monochrome icon, if defined, of the activity. |
| ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#setComponentName(android.content.ComponentName)(https://developer.android.com/reference/android/content/ComponentName value) ` The component name of this activity. |
| ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#setIcon(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable value) ` Icon of the activity in the app's locale. |
| ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#setLabel(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence value) ` The label for the activity. |
| ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | ` https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo#setMonochromeIcon(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable value) ` Monochrome icon, if defined, of the activity. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### ArchivedActivityInfo

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ArchivedActivityInfo (CharSequence label, 
                ComponentName componentName)
```

<br />

<br />

| Parameters ||
|---|---|
| `label` | `CharSequence`: This value cannot be `null`. <br /> |
| `componentName` | `ComponentName`: This value cannot be `null`. <br /> |

## Public methods

### getComponentName

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ComponentName getComponentName ()
```

The component name of this activity.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/ComponentName` | This value cannot be `null`. <br /> |

### getIcon

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getIcon ()
```

Icon of the activity in the app's locale. if null then the default icon would be shown in the launcher.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | <br /> |

### getLabel

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence getLabel ()
```

The label for the activity.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | This value cannot be `null`. <br /> |

### getMonochromeIcon

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getMonochromeIcon ()
```

Monochrome icon, if defined, of the activity.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | This value may be `null`. <br /> |

### setComponentName

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ArchivedActivityInfo setComponentName (ComponentName value)
```

The component name of this activity.

<br />

| Parameters ||
|---|---|
| `value` | `ComponentName`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | This value cannot be `null`. <br /> |

### setIcon

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ArchivedActivityInfo setIcon (Drawable value)
```

Icon of the activity in the app's locale. if null then the default icon would be shown in the launcher.

<br />

| Parameters ||
|---|---|
| `value` | `Drawable`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | <br /> |

### setLabel

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ArchivedActivityInfo setLabel (CharSequence value)
```

The label for the activity.

<br />

| Parameters ||
|---|---|
| `value` | `CharSequence`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | This value cannot be `null`. <br /> |

### setMonochromeIcon

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ArchivedActivityInfo setMonochromeIcon (Drawable value)
```

Monochrome icon, if defined, of the activity.

<br />

| Parameters ||
|---|---|
| `value` | `Drawable`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/pm/ArchivedActivityInfo` | This value cannot be `null`. <br /> |