Comments (14)
It's related to the Android photo picker, which was released with SDK version 33 of Android. Also see:
https://developer.android.com/training/data-storage/shared/photopicker
When opening the gallery, the photo picker was opened (instead of the default gallery folder view) and selecting an image with this (new) photo picker had two issues with the previous implementation (release 2.3.20):
- This file didn't end with ".jpg", ".png", it had a generated file name like "1000000033". Since the previous implementation looked for the last period to identify the mime type of the file, this failed here and later led to above mentioned exception "File Not Found" (actually it couldn't create a file, since it didn't have a mime type).
- When selecting an image via Android photo picker, it was treated as a multiple image selection, even if it was not. This led to a null reference exception when trying to get the uri of the image within the returned result.
Second issue also could been reproduced by opening the gallery, then navigating the Google Photos (via hamburger menu on the top left) and selecting an image from here.
Both issues are fixed with release 2.3.22
from imagepicker.
@Drjacky: Thanks for including my fix, but the changes within the "GalleryProvider" are needed as well.
When picking an image with the Android photo picker it treats this as a "multiple image" selection, even though it is not.
If you do not include this change, the returned result for a single image selection via the Android photo picker will be always null (uri of the image).
I also tested my changes with the multiple image selection as well: This still works as intended.
from imagepicker.
I tested this sample app yesterday and it was working fine but today it is showing me same exception. Don't know what happened!
from imagepicker.
it is not picking the images from recents that are shown for the very first time,... but when we click on browse and select from files it's working fine. Please do let me know if you can solve this or even if you can stop recents to be viewed.
Here are the screenshots.
from imagepicker.
I am facing the same issue today.
from imagepicker.
@Drjacky ?
from imagepicker.
Facing same issue
from imagepicker.
@Drjacky same issue 2 days ago
from imagepicker.
Check ImagePicker this library.
from imagepicker.
@Catlandor thankyou so much for the Bugfix.
from imagepicker.
Thanks to @Catlandor, fixed on 2.3.21
from imagepicker.
Fixed on 2.3.22.
Thanks!
from imagepicker.
Heyy, I know this is closed, but can I know what are the retro steps? It happened with some of our users, but we did not know when and how.
Thanks.
from imagepicker.
Thank you for the clarification
from imagepicker.
Related Issues (20)
- Black Image returned when cropping large images with higher resolution especially raw camera photos, tried it with a (3456 * 4608) . It doesn't crash though. HOT 6
- Setting up different languages HOT 1
- Android 13 not workinf HOT 4
- WRITE_EXTERNAL_STORAGE is denied between Sdk 29 and 33. HOT 2
- Getting ANR in some devices when picking from Gallery.
- [Crash] CropProvider.convertBitmapToFile - java.io.IOException - No such file or directory HOT 2
- Image provider can not be null
- In AndroidManifast file, Kindly updated the <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />, like android:maxSdkVersion="33" this permission not working in android 10, 11, 12 devices
- Delete image when succesfull
- Screen Orientation Issue: Image Picker HOT 4
- Java Sample HOT 1
- API 29 crop image preview not showing black screen only available after crop HOT 1
- set limit on multiple images
- app crash when launch HOT 1
- Cropped Aspect Ratio! HOT 1
- Manifest merger failed : Attribute activity#com.yalantis.ucrop.UCropActivity@theme value=(@style/CameraTheme) from [paysprint_onboarding_live_1_0_9.aar] AndroidManifest.xml:56:13-47
- Could not scale to target size HOT 1
- Open front camera at first.
- [Crash] When picking a camera image without setting crop() HOT 1
- return error "Image provider can not be null"? Any idea...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagepicker.