photopicker

  
This library provides an integration for Compose and Android Views for the embedded photo picker.
Latest Update Stable Release Release Candidate Beta Release Alpha Release
October 21, 2026 - - - 1.0.0-alpha02

Declaring dependencies

To add a dependency on PhotoPicker, 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 {
    // For apps using Compose
    implementation "androidx.photopicker:photopicker-compose:1.0.0-alpha03"
    // For apps using Android views
    implementation "androidx.photopicker:photopicker:1.0.0-alpha03"
}
    

Kotlin

dependencies {
    // For apps using Compose
    implementation("androidx.photopicker:photopicker-compose:1.0.0-alpha03")
    // For apps using Android views
    implementation("androidx.photopicker:photopicker:1.0.0-alpha03")
}
    

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.

There are no release notes for this artifact.

Version 1.0

Version 1.0.0-alpha03

October 21, 2026

androidx.photopicker:photopicker-*:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.

API Changes

  • Added EXTRA_SYSTEM_FALLBACK_PICK_IMAGES_REQUEST_LOCATION_METADATA_ACCESS to PickVisualMedia to allow requesting location metadata access in system fallback pickers. (Ie5917)
  • Renamed artifact androidx.photopicker:photopicker to androidx.photopicker:photopicker-embedded (package androidx.photopicker.embedded), androidx.photopicker:photopicker-compose to androidx.photopicker:photopicker-embedded-compose (package androidx.photopicker.embedded.compose), and androidx.photopicker:photopicker-testing to androidx.photopicker:photopicker-embedded-testing (package androidx.photopicker.embedded.testing). (I48b9b, b/537430760)
  • Refactored EmbeddedPhotoPickerState to expose surfacePackage and notifyVisibilityChanged and added and onError callback. (Ifa4b0)
  • Added setLocationMetadataAccessRequested to PickVisualMediaRequest to allow requesting location metadata access in Photo Picker requests. (Idde80)
  • Migrated PickVisualMedia and PickMultipleVisualMedia contracts, and PickVisualMediaRequest to the new photopicker-activity artifact. Copied tests. (I2a201, b/530216959)
  • Removed the inputs parameter from rememberEmbeddedPhotoPickerState. To reset the state when inputs change, wrap the call in a key block instead. (I8a0c5)
  • Lowered the minSdk of the androidx.photopicker:photopicker and androidx.photopicker:photopicker-compose libraries to 23. (I94e42, b/524083018)
  • Revising Embedded PhotoPicker Compose APIs (Ie32c9)
  • New libraries for Photopicker (I0f52a)
  • New testing library for photopicker (I7c1ec)

Bug Fixes

  • androidx.lifecycle:lifecycle-runtime dependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. (I99bfd, b/556807521)
  • compileSdk for Compose libraries updated to 37.1. This will require transitively updating compileSdk for all apps and libraries using Compose. (I05b0f)
  • Updated Compose compileSdk to API 37. This means that a minimum AGP version of 9.2.0 is required when using Compose. (Id45cd)

Version 1.0.0-alpha02

July 01, 2026

androidx.photopicker:photopicker:1.0.0-alpha02, androidx.photopicker:photopicker-compose:1.0.0-alpha02, and androidx.photopicker:photopicker-testing:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.

API Changes

  • Lowered the minSdk of the androidx.photopicker:photopicker and androidx.photopicker:photopicker-compose libraries to 23, while the APIs still require to be called starting from 34. (I94e42, b/524083018)
  • Updating Embedded PhotoPicker Compose APIs (removing AbstractEmbeddedPhotoPickerState, renaming and change visibility of some fields from EmbeddedPhotoPickerState) (Ie32c9, b/449786033)

Bug Fixes

  • Updated Compose compileSdk to API 37. This means that a minimum AGP version of 9.2.0 is required when using Compose. (Ic748a, b/413674743)

Version 1.0.0-alpha01

June 4, 2025

androidx.photopicker:photopicker:1.0.0-alpha01, androidx.photopicker:photopicker-compose:1.0.0-alpha01, and androidx.photopicker:photopicker-testing:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.

New Features

  • The initial alpha release of androidx implementations of the Embedded PhotoPicker that enable both View based and Compose based applications to easily integrate with the Embedded Photopicker service.

API Changes

  • Added EmbeddedPhotopicker composable for as an entrypoint for compose based applications.
    • rememberEmbeddedPhotoPickerState can be used (recommended) or applications can implement their own state management with the EmbeddedPhotoPickerState interface.
  • Added EmbeddedPhotopickerView as an entrypoint for view based applications.
    • EmbeddedPhotoPickerStateChangeListener can be used to receive related callbacks to state inside the PhotoPicker.
  • Added TestEmbeddedPhotoPickerProvider to allow apps to test flows that rely on the Embedded Photopicker.