[HTML payload içeriği buraya]
32.9 C
Jakarta
Tuesday, May 5, 2026

Cloud images now out there within the Android picture picker



Posted by Roxanna Aliabadi Walker – Product Supervisor

Accessible now with Google Pictures

Our picture picker has all the time been the gateway to your native media library, offering a safe, date-sorted interface for customers to grant apps entry to chose pictures and movies. However now, we’re taking it a step additional by integrating cloud images out of your chosen cloud media app immediately into the picture picker expertise.

Moving image of the photo picker access

Unifying your media library

Backed-up images, also referred to as “cloud images,” will now be merged along with your native ones within the picture picker, eliminating the necessity to swap between apps. Moreover, any albums you have created in your cloud storage app might be readily accessible inside the picture picker’s albums tab. In case your cloud media supplier has an idea of “favorites,” they are going to be showcased prominently inside the albums tab of the picture picker for simple entry. This characteristic is at the moment rolling out with the February Google System Replace to gadgets working Android 12 and above.

Accessible now with Google Pictures, however open to all

Google Pictures is already supporting this new characteristic, and our APIs are open to any cloud media app that qualifies for our pilot program. Our purpose is to make accessing your lifetime of reminiscences easy, whatever the app you like.

The Android picture picker will try and auto-select a cloud media app for you, however you’ll be able to change or take away your chosen cloud media app at any time from picture picker settings.

Image of Cloud media settings in photo picker settings

Migrate as we speak for an enhanced, frictionless expertise

The Android picture picker considerably reduces friction by not requiring any runtime permissions. When you swap from utilizing a customized picture picker to the Android picture picker, you’ll be able to provide this enhanced expertise with cloud images to your customers, in addition to scale back or totally eradicate the overhead concerned with buying and managing entry to images on the gadget. (Word that apps with no want for persistent and/or broad scale entry to images – for instance – to set a profile image, should undertake the Android picture picker in lieu of any delicate file permissions to stick to Google Play coverage).

The picture picker has been backported to Android 4.4 to make it simple emigrate with no need to fret about gadget compatibility. Entry to cloud content material will solely be out there for customers working Android 12 and better, however builders don’t want to think about this when implementing the picture picker into their apps. To make use of the picture picker in your app, replace the ActivityX dependency to model 1.7.x or above and add the next code snippet:

// Registers a photograph picker exercise launcher in single-choose mode.
val pickMedia = registerForActivityResult(PickVisualMedia()) { uri ->
    // Callback is invoked after the person selects a media merchandise or closes the
    // picture picker.
    if (uri != null) {
        Log.d("PhotoPicker", "Chosen URI: $uri")
    } else {
        Log.d("PhotoPicker", "No media chosen")
    }
}


// Launch the picture picker and let the person select pictures and movies.
pickMedia.launch(PickVisualMediaRequest(PickVisualMedia.ImageAndVideo))

// Launch the picture picker and let the person select solely pictures.
pickMedia.launch(PickVisualMediaRequest(PickVisualMedia.ImageOnly))

// Launch the picture picker and let the person select solely movies.
pickMedia.launch(PickVisualMediaRequest(PickVisualMedia.VideoOnly))

Extra customization choices are listed in our developer documentation.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles