Compressor
Compressor copied to clipboard
Does not work with Android 10
With Android Q update, the compressor does not work any more due to "Manage scoped external storage access"
@nvhaiwork You can add android:requestLegacyExternalStorage="true" in AndroidManifest.xml currently
@nvhaiwork You can add
android:requestLegacyExternalStorage="true"inAndroidManifest.xmlcurrently
Will that work properly in Android 10 and coming versions?
@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
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.
I have raised https://github.com/zetbaitsu/Compressor/pull/150 to support this on Android 10. @zetbaitsu could you please review this?