~/talk

Building your own Jetpack

Talkat DevFest Romania 2020 · on Saturday, 2020-10-17· [android]
links:none on file
slides:none on file

Explains how Android Jetpack ViewModel actually decouples UI state from Activity/Fragment lifecycle and shows how to implement the same mechanism: a ViewModelStore tied to Activity that survives configuration changes, a custom ViewModel registry and factory, lifecycle-aware observers, and the rules for scoping to activity vs fragment (and pitfalls with FragmentManager/back stack). Demonstrates a concrete playlists page implemented with the homemade ViewModel system so it survives rotation and navigation, and shows the registry/observer code that makes it work in practice.

AI-written summary · about

  1. 0:00Introduction to Jetpack
  2. 1:05What is Jetpack
  3. 2:36ViewModel and lifecycle
  4. 5:03Handling configuration changes
  5. 8:19Fragment lifecycle deep dive
  6. 12:22FragmentManager explained
  7. 17:24Building custom components
  8. 21:53Real-world Jetpack use cases
  9. 26:11Debugging and testing
  10. 30:50Advanced Jetpack features
  11. 34:08Q&A and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.