Activity

Access composable APIs built on top of Activity.
Latest Update Stable Release Release Candidate Beta Release Alpha Release
March 11, 2026 1.13.0 - - -

Declaring dependencies

To add a dependency on Activity, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

dependencies {
    def activity_version = "1.13.0"

    // Java language implementation
    implementation "androidx.activity:activity:$activity_version"
    // Kotlin
    implementation "androidx.activity:activity-ktx:$activity_version"
}

Kotlin

dependencies {
    val activity_version = "1.13.0"

    // Java language implementation
    implementation("androidx.activity:activity:$activity_version")
    // Kotlin
    implementation("androidx.activity:activity-ktx:$activity_version")
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.13

Version 1.13.0

March 11, 2026

androidx.activity:activity:1.13.0, androidx.activity:activity-compose:1.13.0, and androidx.activity:activity-ktx:1.13.0 are released. Version 1.13.0 contains these commits.

Important changes since 1.12.0:

  • ComponentActivity now implements the OnPictureInPictureUiStateChangedProvider interface which means it can now integrate with the new core:core-pip artifact that allows allow any component to receive picture-in-picture ui state change events.
  • EdgeToEdge is now re-invoked on configuration changes to ensure that the system status bar color is properly updated.

Version 1.13.0-rc01

February 25, 2026

androidx.activity:activity:1.13.0-rc01, androidx.activity:activity-compose:1.13.0-rc01, and androidx.activity:activity-ktx:1.13.0-rc01 are released. Version 1.13.0-rc01 contains these commits.

Bug Fixes

  • From Activity 1.12.4: The Photo and Video ActivityResultContracts now will correctly launch when being used on devices with the latest URI security fixes. (I61201, b/433708587)

Version 1.13.0-alpha01

January 14, 2026

androidx.activity:activity:1.13.0-alpha01, androidx.activity:activity-compose:1.13.0-alpha01, and androidx.activity:activity-ktx:1.13.0-alpha01 are released. Version 1.13.0-alpha01 contains these commits.

New Features

  • EdgeToEdge is now re-invoked on configuration changes to ensure that the system status bar color is properly updated. (Id1381, b/364713509)

API Changes