Simplifying Scoped Storage with ModernStorage
summary
A new library named ModernStorage claims to unify Android storage across APIs 21+ and actually ships utilities: a permission checker (hasAccess) that maps actions to required grants, a one-line metadata fetch, and a one-call copy that wraps streams. Implementation uses ContentResolver/MediaStore, Storage Access Framework, Okio for I/O, and integrates with activity‑result contracts and Glide thumbnails. Photo picker is delivered on Android 13 and backported via Play system update; the library is in alpha and accepts feedback.
AI-written summary · about
chapters (8)
- 0:00Introduction to storage
- 1:12Storage types explained
- 5:50Evolution of scoped storage
- 8:58Android 13 storage updates
- 11:57Implementation best practices
- 14:32Using MediaStore
- 17:07File and photo picker APIs
- 18:40Modern storage library
related talks
39mFrom Scoped Storage to Photo Picker: Everything to know about Storage
26mWhats new with Data Storage?
12mEverything about storage on Android
24mNow and Future of Media Access
32mWhat’s new in shared storage
34mStoring app data reliably & performantly with SimpleStore
45mLive Coding Session: How do you Build More Privacy Focused Apps?
22mPlatform #AskAndroid
