# ActionBuilders.AndroidActivity

# ActionBuilders.AndroidActivity

Artifact:[androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/ActionBuilders.java+class:androidx.wear.protolayout.ActionBuilders.AndroidActivity)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.AndroidActivity "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 0)
class ActionBuilders.AndroidActivity
```

<br />

*** ** * ** ***

A launch action to send an intent to an Android activity.

## Summary

|                                                                                                                                            ### Nested types                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[ActionBuilders.AndroidActivity.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidActivity.Builder) Builder for[AndroidActivity](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidActivity) |

|                                                                                                                                                                                                       ### Public functions                                                                                                                                                                                                       |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                                                                                                                | [getClassName](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidActivity#getClassName())`()` Gets the fully qualified class name (including the package) to send the intent to, for example, "com.example.weather.WeatherOverviewActivity". |
| `(`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)`)`[Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!, `[ActionBuilders.AndroidExtra](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidExtra)`!>` | [getKeyToExtraMapping](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidActivity#getKeyToExtraMapping())`()` Gets the extras to be included in the intent.                                                                                  |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                                                                                                                | [getPackageName](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidActivity#getPackageName())`()` Gets the package name to send the intent to, for example, "com.example.weather".                                                           |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                                                                                                                | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidActivity#toString())`()`                                                                                                                                                        |

## Public functions

### getClassName

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

```
fun getClassName(): String
```

Gets the fully qualified class name (including the package) to send the intent to, for example, "com.example.weather.WeatherOverviewActivity".  

### getKeyToExtraMapping

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

```
fun getKeyToExtraMapping(): (Mutable)Map<String!, ActionBuilders.AndroidExtra!>
```

Gets the extras to be included in the intent.  

### getPackageName

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

```
fun getPackageName(): String
```

Gets the package name to send the intent to, for example, "com.example.weather".  

### toString

```
fun toString(): String
```