Android 13 Photo Picker With The Activity Result API

About All Possible Options To Implement The New Photo Picker With Easy Access And Backward Compatibility

Yanneck Reiß
Tech Takeaways

--

Background photo by WangMing from Pexels

Android 13 is officially released and brings many new features and behavior changes with the new SDK version 33, also referenced as Tiramisu.

One of the features is the new Photo Picker. This feature allows us to browse for photos and videos and thus replaces the retrieval of media via the file browser.

In this article, we will take a look at the different ways to use this new feature. We’ll take a look at how we can use it with the Activity Result API and ensure backward compatibility at the same time.

1. Setup

The Photo Picker requires your app to target at least version 33 of the Android SDK.

To comply with this requirement, make sure that you set the compileSdkVersion and targetSdkVersion are set to at least the following:

--

--

Yanneck Reiß
Tech Takeaways

Follow me on my journey as a professional mobile and fullstack developer