Now and Future of Media Access
summary
Covers how to read and write photos on modern Android using MediaStore and ContentResolver. Shows a sample app that queries images with projection and paging, loads thumbnails to avoid OOM, crops and saves a new image by inserting into MediaStore and writing via output streams (using ID-to-URI appending), and uses cursor flows. Notes platform changes (runtime permissions since Android 6, scoped storage in Android 10, enforced opt-out removal in Android 11) and demonstrates google/modernstorage helpers like URI creation and addFromStream.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:47Media access goals
- 2:28Media access history on Android
- 3:51Storage Access Framework
- 4:35Content providers and media stores
- 6:01Scoped storage in Android 10+
- 7:28File URI vs Content URI
- 8:32Image loading with ContentResolver
- 10:20Media store projections
- 12:06Querying cursors
- 14:37Thumbnails and query paging
- 16:22Saving new images
- 18:48URI generation changes in Android 10+
- 20:11Exclusive access with isPending
- 20:32Modern storage overview
- 21:13Media store operations
- 22:39Single media queries
- 23:00Scoped storage summary
related talks
12mEverything about storage on Android
26mWhats new with Data Storage?
23mSimplifying Scoped Storage with ModernStorage
32mWhat’s new in shared storage
39mFrom Scoped Storage to Photo Picker: Everything to know about Storage
22mPlatform #AskAndroid
35mBuilding Camera Apps on Android Today
35mPractical Image Processing in Android
