anwilli5 / coin-collection-android-US

Repo for the Coin Collection Android app
GNU General Public License v3.0
10 stars 5 forks source link

Fix export/import directory starting in Android API 30+ #46

Closed sw23 closed 3 years ago

sw23 commented 3 years ago

The app currently creates an app-specific directory in external storage for import/export, however Android is getting rid of that to prevent app cluttering users phones with external files (which makes sense). For now I've added:

android:requestLegacyExternalStorage="true"

That permits the current code working in API 29, however we'll need to fix this starting in API 30+. We could switch to the internal directory, however that gets removed when the app is uninstalled. I think the best solution is to allow the users to download their collections to shared storage, which would show up similar to a file downloaded from a web browser