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

What's your plan for Android Q? #134

Open
staltz opened this issue Oct 10, 2019 · 2 comments
Open

What's your plan for Android Q? #134

staltz opened this issue Oct 10, 2019 · 2 comments

Comments

@staltz
Copy link

staltz commented Oct 10, 2019

Hello fellow FOSS developer, I build the Manyverse app which is also on F-Droid.

Have you heard of Google's schedule to deprecate shared external directories? See this article.

Your app uses Environment.getExternalStorageDirectory() which Google is deprecating in API level 29.

args.putString(FileManagerIntents.EXTRA_DIR_PATH, Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED) ? Environment.getExternalStorageDirectory().getAbsolutePath() : "/");

I think this is terrible news from Google, and I'd like to use getExternalStorageDirectory() too. This change in Android Q will affect all File Managers and significantly change the UX and possible features for users. I would like to know if you have any ideas what could be done.

@friedger
Copy link
Member

friedger commented Oct 18, 2019

@staltz Probably the only solution is to ask the user for the root uri through the StorageAccessFramework.

@marcoscgdev
Copy link

A temporary fix could be adding this flag into the manifest:

android:requestLegacyExternalStorage="true"

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

3 participants