~/talk

The New Modern Data Persistence on Android - Meet Jetpack Datastore

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android, databases]
slides:none on file

Demonstrates Jetpack DataStore with concrete code: uses Preferences DataStore for simple key-value pairs (taskTitle, taskDescription, taskPriority:int, taskCompleted:bool) with createDataStore, edit, data.map and flow.collect; shows Proto DataStore using a src/main/proto task message, generated serializer and updateData, and notes requiring protobuf Java Lite 3.18.1 and an M1 workaround. Compares performance, type safety, versioning and schema evolution versus SharedPreferences; uses Budgeting Buddy as a dogfood app and keeps Room for complex relational data.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:52What is Jetpack DataStore
  3. 3:59Advantages of DataStore
  4. 5:47Implementing DataStore preferences
  5. 9:41Introducing Proto DataStore
  6. 11:48Proto DataStore setup and usage
  7. 13:55Comparing DataStore with SharedPreferences
  8. 14:58When to use DataStore vs Room
  9. 18:32Migrating from SharedPreferences
  10. 21:41Proto DataStore use cases
  11. 22:44Summary and resources
~/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.