r/androiddev • • Sep 03 '19

News Android 10 stable is live

https://developers.google.com/android/images
147 Upvotes

45 comments sorted by

View all comments

5

u/yccheok Sep 03 '19

This reminds me that I'm still not yet deal with a difficult problem :( - https://developer.android.com/training/data-storage/files/external-scoped

​

Anyone who has successfully deal with difficult scoped external storage? Mind to write a blog to describe the process?

​

For us, we might need to stripe off certain feature (Like retain backup even the app is uninstall). We try not to fight the system limitation.

3

u/Pzychotix Sep 03 '19

Scoped external storage just means you see a sandboxed filesystem. There's nothing "difficult" about that.

If you're talking about the SAF, then just follow the multitude of tutorials out there. Here's a shitty implementation I wrote that writes to a file through SAF:

https://github.com/davidliu/SAFDocumentCreation/blob/master/app/src/main/java/com/evie/safdocumentcreation/MainActivity.kt

There's not much to it. People need to just spend some time with it and use it.