Stay organized with collections
Save and categorize content based on your preferences.
privacysandbox activity
TODO
Latest Update |
Stable Release |
Release Candidate |
Beta Release |
Alpha Release |
March 26, 2025 |
- |
- |
- |
1.0.0-alpha02 |
Declaring dependencies
To add a dependency on privacysandbox-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 {
// Use to implement privacysandbox activitys
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity:1.0.0-alpha02"
// Use to implement privacysandbox activity complications
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02"
// (Kotlin-specific extensions)
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02"
// Use to implement a activity style and complication editor
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02"
// Can use to render complications.
// TODO: Confirm these dependencies
// This library is optional and activitys may have custom implementation for rendering
// complications.
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02"
}
Kotlin
dependencies {
// Use to implement privacysandbox activitys
// TODO: Confirm these dependencies
implementation("androidx.privacysandbox.activity:activity:1.0.0-alpha02")
// Use to implement privacysandbox activity complications
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02"
// (Kotlin-specific extensions)
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02"
// Use to implement a activity style and complication editor
// TODO: Confirm these dependencies
implementation("androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02")
// Can use to render complications.
// TODO: Confirm these dependencies
// This library is optional and activitys may have custom implementation for rendering
// complications.
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02"
}
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.0
Version 1.0.0-alpha02
March 26, 2025
androidx.privacysandbox.activity:activity-client:1.0.0-alpha02
, androidx.privacysandbox.activity:activity-core:1.0.0-alpha02
, and androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02
are released. Version 1.0.0-alpha02 contains these commits.
New Features
- SDK activity launchers can now be created for lifecycle-unaware activities, i.e. activities that don’t implement the
LifecycleOwner
interface. These launchers need to be manually disposed of by the caller.
API Changes
- Added
LocalUnmanagedSdkActivityLauncher
and createUnmanagedSdkActivityLauncher
, a launcher class for lifecycle-unaware activities and a method to create such launchers.
- Renamed
LocalSdkActivityLauncher
to LocalManagedSdkActivityLauncher
to highlight the distinction between this and lifecycle-unaware type of launchers.
Version 1.0.0-alpha01
November 15, 2023
androidx.privacysandbox.activity:activity-client:1.0.0-alpha01
, androidx.privacysandbox.activity:activity-core:1.0.0-alpha01
, and androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01
are released. Version 1.0.0-alpha01 contains these commits.
New Features
- Introducing a dedicated Privacy Sandbox Activity library.
- It contains interfaces for launching activities from the SDK Runtime. The interfaces were previously defined in the Privacy Sandbox UI library.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-29 UTC."],[],[],null,["# privacysandbox activity\n=======================\n\nAPI Reference \n[androidx.privacysandbox.activity](/reference/kotlin/androidx/privacysandbox/activity/package-summary) \nTODO \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|----------------|----------------|-------------------|--------------|-----------------------------------------------------------------------------------|\n| March 26, 2025 | - | - | - | [1.0.0-alpha02](/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha02) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on privacysandbox-activity, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n // Use to implement privacysandbox activitys\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity:1.0.0-alpha02\"\n\n // Use to implement privacysandbox activity complications\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02\"\n // (Kotlin-specific extensions)\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02\"\n\n // Use to implement a activity style and complication editor\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02\"\n\n // Can use to render complications.\n // TODO: Confirm these dependencies\n // This library is optional and activitys may have custom implementation for rendering\n // complications.\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n // Use to implement privacysandbox activitys\n // TODO: Confirm these dependencies\n implementation(\"androidx.privacysandbox.activity:activity:1.0.0-alpha02\")\n\n // Use to implement privacysandbox activity complications\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02\"\n // (Kotlin-specific extensions)\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02\"\n\n // Use to implement a activity style and complication editor\n // TODO: Confirm these dependencies\n implementation(\"androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02\")\n\n // Can use to render complications.\n // TODO: Confirm these dependencies\n // This library is optional and activitys may have custom implementation for rendering\n // complications.\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02\"\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1116743%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1116743&template=1629474)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.0\n-----------\n\n### Version 1.0.0-alpha02\n\nMarch 26, 2025\n\n`androidx.privacysandbox.activity:activity-client:1.0.0-alpha02`, `androidx.privacysandbox.activity:activity-core:1.0.0-alpha02`, and `androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02` are released. Version 1.0.0-alpha02 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/312eb9f1ddece3a18317f18515a877e0e745cb2c..78132378b67c86698d1ade3dc368c9f15d738a71/privacysandbox/activity).\n\n**New Features**\n\n- SDK activity launchers can now be created for lifecycle-unaware activities, i.e. activities that don't implement the `LifecycleOwner` interface. These launchers need to be manually disposed of by the caller.\n\n**API Changes**\n\n- Added `LocalUnmanagedSdkActivityLauncher` and `createUnmanagedSdkActivityLauncher`, a launcher class for lifecycle-unaware activities and a method to create such launchers.\n- Renamed `LocalSdkActivityLauncher` to `LocalManagedSdkActivityLauncher` to highlight the distinction between this and lifecycle-unaware type of launchers.\n\n### Version 1.0.0-alpha01\n\nNovember 15, 2023\n\n`androidx.privacysandbox.activity:activity-client:1.0.0-alpha01`, `androidx.privacysandbox.activity:activity-core:1.0.0-alpha01`, and `androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01` are released. [Version 1.0.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/312eb9f1ddece3a18317f18515a877e0e745cb2c/privacysandbox/activity)\n\n**New Features**\n\n- Introducing a dedicated Privacy Sandbox Activity library.\n- It contains interfaces for launching activities from the SDK Runtime. The interfaces were previously defined in the Privacy Sandbox UI library."]]