Questions tagged [photo-picker]
22 questions
22
votes
2 answers
Automatic install of the backported version of the Android Photo Picker not playing nicely with Android Studio
I'm trying to implement the new Android Photo Picker but I'm running into an issue when trying to setup the automatic install of the backported photo picker module on older devices.
According to the docs we need to add the following to our app's…

karlingen
- 13,800
- 5
- 43
- 74
6
votes
1 answer
Retrieving GPS EXIF data from images using AndroidX ExifInterface?
I'm targeting Android 13 and using the new photo picker to retrieve images. E.g.
val photoPicker = rememberLauncherForActivityResult(
contract = ActivityResultContracts.PickMultipleVisualMedia()
) { uris: List -> handleUris(context,…

Niels Masdorp
- 2,534
- 2
- 18
- 31
3
votes
1 answer
Invoke PhotoPicker Programmatically?
The SwiftUI PhotoPicker is great for creating a button/label to press & then show a Photo Picker when the label is pressed. However, I'd like to invoke a photo picker not after the Picker's label is pressed, but after a conditional test has…

Gallaugher
- 1,593
- 16
- 27
2
votes
0 answers
Predict if Android has stripped-off EXIF metadata
Android has recently released a new Photo Picker for Android that provides a safe, built-in way for users to grant an app access to only selected images and videos instead of their entire media library.
This photo picker, however, strips off…

Ritika Pahwa
- 21
- 3
2
votes
0 answers
Android Photo Picker set tick for already selected uri's previously
Reference to the feature -> https://developer.android.com/training/data-storage/shared/photopicker#device-availability
Code and explanation I
I create a request which will open up photo and video picker, after selecting a list of uri's is returned…

WuzerHaun
- 35
- 5
2
votes
0 answers
Android 13 Photo Picker gives FileNotFoundException
I used a photo picker to retrieve photos and I follow https://developer.android.com/training/data-storage/shared/photopicker. We have seen a few devices below crash in Android 11 and above devices.
Non-fatal Exception: java.io.FileNotFoundException:…

user14552676
- 31
- 1
- 3
2
votes
0 answers
New Android 13 Photo Picker EXIF location not working
I am just implementing the new Android 13 photo picker and I simply cannot get the EXIF location of the selected photos.
Intent intent = new…

tobidude
- 480
- 1
- 7
- 11
1
vote
0 answers
How to make Photo Picker show images from Google Photos?
Is there any way to make Photo Picker show images from Google Photos?
I've tested it on an emulator API 33 and it only shows images from the Gallery (even though there are images in Google Photos and Google Drive).
When I tested it on a physical…

Augusto Carmo
- 4,386
- 2
- 28
- 61
1
vote
1 answer
How to multi select MIME type for Android PhotoPicker
I'd like to use Android PhotoPicker, then I want multi MIME type that can JPEG, PNG but can only single MIME type, how can I get it?
// Launch the photo picker and let the user choose only images/videos of a
// specific MIME type, such as GIFs.
val…

brainer
- 85
- 1
- 6
1
vote
0 answers
How to properly use SwiftUI's Photo Picker to upload image?
I am using SwiftUI's native image picker and selecting/loading images works great. What I can't figure out is how to call the selected image when uploading the image to firebase. In my UploadPostView, I can't figure out what to call for the image in…

amelia
- 71
- 2
- 7
1
vote
0 answers
TLPhotoPicker dismissPhotoPicker Doesn't Add Video
I am trying to fetch and append a video file from the gallery. I can select and append image files but when I try to fetch video files my withTLPHAssets ignores it and only shows images not videos. How should I fetch a video file without crashing?
I…

Mert Köksal
- 817
- 1
- 7
- 26
1
vote
0 answers
How to view photos selected by PhotoPicker(android 13) in phone's gallery
Android 13(sdk 33) has introduced a new PhotoPicker that provides a better way to let the user pick photos in apps but it has some limits.
Now it's possible to get the uri when you select a photo(or photos) but when I want to re-open that uri with…

Prs2
- 93
- 6
1
vote
0 answers
SwiftUI .onLongPressGesture() needs to be long pressed twice before action takes place
I'm practicing swiftUI by building a small camera album app that accesses the photo album to allow the user to select and load a photo in the app. Then, the uploaded photos are displayed so the user selects a photo as the primary photo. The problem…

abs8090
- 111
- 2
- 9
0
votes
0 answers
ActivityResultContracts.PickMultipleVisualMedia returns URIs only by creation date order
In Jetpack Compose the new Photo Picker form Android 13 returns URIs ordered by creation date instead of the order you selected pictures.
Im using the ActivityResultContracts.PickMultipleVisualMedia for picking multiple picture and I was expecting…

Will Shepard
- 1
- 1
- 1
0
votes
1 answer
Getting error "open failed: EFAULT (Bad address)" when okhttp tries to send choosed from PhotoPicker image
This error occurs ONLY when an image was choosed from Photo Picker on android 13 (on versions without Photo Picker all works!).
What does code:
User picks image from Photo Picker.
Get image's uri and save file in body, there all is working too:
File…

Yoko999
- 21
- 1
- 6