Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

getting issue in Android 30 #112

Open
arthtilva opened this issue Oct 3, 2020 · 8 comments
Open

getting issue in Android 30 #112

arthtilva opened this issue Oct 3, 2020 · 8 comments

Comments

@arthtilva
Copy link

I am able to receive the path of images but when i check the file with .exists() it returns false, So not able to display or upload image also.

@pelusodan
Copy link

Having this same issue - where filePath is from the media picker
File file = new File(filePath); file.exists() -> always returns false

@prfarlow1
Copy link
Contributor

@alhazmy13 you haven't released a new version of this library in over 2 years. Can you either release a new version or just mark this repository as read only if you don't have any time to contribute any more?

@aadityapaliwal94
Copy link

I also faced the same issue, please try this.

Google has a new feature on Android Q: filtered view for external storage. A quick fix for that is to add this code in the AndroidManifest.xml file:

<manifest ... >
    <!-- This attribute is "false" by default on apps targeting Android Q. -->
    <application android:requestLegacyExternalStorage="true" ... >
     ...
    </application>
</manifest>

@prfarlow1
Copy link
Contributor

@aadityapaliwal94 this will not work if your app targets Android 11:
"After you update your app to target Android 11 (API level 30), the system ignores the requestLegacyExternalStorage attribute when your app is running on Android 11 devices, so your app must be ready to support scoped storage and to migrate app data for users on those devices." https://developer.android.com/training/data-storage/use-cases

@aadityapaliwal94
Copy link

Thanks, @prfarlow1. Will check it out.

@Drjacky
Copy link

Drjacky commented May 12, 2021

@arthtilva @pelusodan @prfarlow1 @aadityapaliwal94 https://github.com/Drjacky/ImagePicker/

@arthtilva
Copy link
Author

@Drjacky I think Your lib that doesn't support multiple image selection.

@Drjacky
Copy link

Drjacky commented May 15, 2021

@arthtilva I couldn't run that project; It's super old.
Does it allow multiple selections AND CROP at the same time? Or just multiple selections?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants