The primary video within the references beneath has a great (non-Google) overview of the problems with MediaStore for Android 11 – and the way some apps are having to make use of a combination of SAF and MediaStore to cobble issues collectively.
On this video they recommend retaining your information in your individual folder – this manner you keep away from the 128 persistent permissions challenge, as all of the information inside that folder get permission (if in case you have permission for that one folder).
Nonetheless some points with System Picker – as varies by producer.
Additionally they resolve one query I had – whether or not one can create a folder inside Music and different “shared storage” areas.
They point out you may delete as effectively.
We now have had expertise with MediaStore from some years in the past – when it was actually kludgy – generally a file would seem in MediaStore, generally not.
Maybe it has improved by now.
how simple is it to maneuver a file from your individual folder (inside Music and many others.) – and transfer it to an extra sub-folder there. Is that instantaneous (because it was once earlier when each supply and vacation spot have been on inner storage) ?
when the Android 11 FAQ by Google on medium – https://medium.com/androiddevelopers/android-11-storage-faq-78cefea52b7c – Android 11 storage FAQ – means that fopen() can be utilized now – does that imply you may programmatically cope with file paths strings, including on a suffix to level to a sub-folder (as you used to do earlier than) ? That’s, can one extract a file path from a Uri that MediaStore returns ? After which add on a sub-folder to the file path string and use that with fopen() ?
https://www.youtube.com/watch?v=32Jox0itYKI Android 11 #1: Deep Dive into Scoped Storage & Privateness Android Academy International July 7, 2020
2:19:30 minute mark
128 persistent URIs ..
when ask for 129 can have challenge ..
2:21:00 minute mark
recommend preserve paperwork inside personal folder
(so means can do sub-folder and many others. !?)
can maintain permission to listing .. which simpler ..
can create listing
can delete information
2:25:00 minute mark
2:28:00 minute mark
main issues with SAF
system picker offered by producer ..
issues with cloud primarily based suppliers
FileProvider for sharing with different apps ..
that they had points with information ..
migrated to MediaStore .. nonetheless have points ..
so nonetheless requesting legacy storage ..
barrier is getting much less ..
additionally utilizing SAF .. nonetheless utilizing legacy storage generally (!?)
1:09:00 – customers not discovered user-friendly
so had to make use of legacy ..
https://medium.com/androiddevelopers/android-11-storage-faq-78cefea52b7c Android 11 storage FAQ
Leave a Reply