Whats new with Data Storage?
summary
Scoped Storage restricts app access to shared files and media and Android 10 already moves writes into MediaStore while Android R (11) adds batch operations and the new MANAGE_EXTERNAL_STORAGE permission for file managers. Migration specifics include inserting with ContentValues, using the IS_PENDING flag to hide incomplete files, catching RecoverableSecurityException and launching an intent sender to get user consent, and relying on the temporary requestLegacyExternalStorage manifest escape that won’t be permanent. Examples show taking photos into MediaStore and recursive vs batch deletes.
AI-written summary · about
chapters (9)
- 0:00Intro
- 1:33Scoped Storage Overview and History
- 5:06What is affected? Storage types
- 5:44What changes? API level guide
- 10:10Problems Frequent cases
- 10:34What can be an issue in my current code? Deprecations
- 14:01How should I use it? (CREATE)
- 18:46How should I use it? (UPDATE & DELETE)
- 19:25How should I migrate my code?
related talks
12mEverything about storage on Android
32mWhat’s new in shared storage
39mFrom Scoped Storage to Photo Picker: Everything to know about Storage
23mSimplifying Scoped Storage with ModernStorage
24mNow and Future of Media Access
29mAdapting Your Apps for Android Q Privacy Requirements
19mAdapting Your Apps for Android Q Privacy Requirements
18mFiles for miles: Where to store them all?
