Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Android 10 #134

Open
nvhaiwork opened this issue Sep 26, 2019 · 5 comments
Open

Does not work with Android 10 #134

nvhaiwork opened this issue Sep 26, 2019 · 5 comments

Comments

@nvhaiwork
Copy link

nvhaiwork commented Sep 26, 2019

With Android Q update, the compressor does not work any more due to "Manage scoped external storage access"

@jp1017
Copy link

jp1017 commented Oct 8, 2019

@nvhaiwork You can add android:requestLegacyExternalStorage="true" in AndroidManifest.xml currently

@Parag2385
Copy link

@nvhaiwork You can add android:requestLegacyExternalStorage="true" in AndroidManifest.xml currently

Will that work properly in Android 10 and coming versions?

@petarmarijanovicfive
Copy link

@Parag2385 it should, but it's not a proper solution. That's a way to avoid the error for now and will not work for Android 11

@lpbas
Copy link

lpbas commented Mar 24, 2020

On Android 10+ there is scoped storage, meaning that each app can only access their own files. Thus, to actually do anything, you need to copy the file you want somewhere you can access it, e.g. your app's cache directory. This article explains how to do it pretty clearly.

Keep in mind that you should clean up after yourself when you're finished with the cached files.

@shrastiRisor
Copy link

I have raised #150 to support this on Android 10.
@zetbaitsu could you please review this?

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

No branches or pull requests

6 participants