The Embedded Photo Picker in AndroidX allows users to select media directly within an app's UI instead of switching to a separate system activity. Available on Android 14+ with SDK Extensions 15+, it provides real-time selection synchronization, cloud library access without broad permissions, and customization options including selection limits, MIME type filtering, and accent colors. The picker works best in bottom sheets for progressive disclosure and supports both peek and expanded states. Implementation requires the androidx.photopicker:photopicker-compose library and includes callbacks for handling selections, deselections, and completion events.

9m read timeFrom proandroiddev.com
Post cover image
Table of contents
Recapping the “Detached” Photo PickerNew Photo Picker API ( No permissions !)Why Use the Embedded Photo Picker?Prerequisites and CompatibilityDevice RequirementsGet Oğuzhan Aslan ’s stories in your inboxImplementation in Jetpack ComposePersonalizing the PickerFiltering by MIME TypesHandling Selections in Real-TimeControlling the Display State (Peek vs. Expanded)Usage in Bottom Sheet
775 Impressions