~/talk

Now and Future of Media Access

TalkinJapaneseat DroidKaigi 2021 · 2021-10-19..10-21· [android, security]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:47Media access goals
  3. 2:28Media access history on Android
  4. 3:51Storage Access Framework
  5. 4:35Content providers and media stores
  6. 6:01Scoped storage in Android 10+
  7. 7:28File URI vs Content URI
  8. 8:32Image loading with ContentResolver
  9. 10:20Media store projections
  10. 12:06Querying cursors
  11. 14:37Thumbnails and query paging
  12. 16:22Saving new images
  13. 18:48URI generation changes in Android 10+
  14. 20:11Exclusive access with isPending
  15. 20:32Modern storage overview
  16. 21:13Media store operations
  17. 22:39Single media queries
  18. 23:00Scoped storage summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.