~/talk

Navigation and the Single Activity: Learnings from a Skeptic

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [android]
slides:none on file

Practical account of adopting Android Jetpack navigation: the navigation component plus the SafeArgs plugin implements type‑safe arguments, generates deep links and directions, and moves screen wiring into an XML nav graph hosted by a NavHostFragment controlled by a NavController. Benefits include activity‑scoped resource sharing via shared ViewModel instances, correct up/back and stack behavior, and Android Studio graph tooling; caveats include no built‑in navigate‑for‑result yet and dynamic feature integration still pending. Migration strategy: replace activity screens with fragments hosted by a blank activity and incrementally convert logic.

AI-written summary · about

  1. 0:00Introduction and skepticism
  2. 7:53Fragments: drawbacks and benefits
  3. 11:30Jetpack Navigation introduction
  4. 15:22Navigation component principles
  5. 23:20Safe Args and type safety
  6. 27:14Migration and setup
  7. 33:15Activity results and LiveData
  8. 35:00Summary and dynamic features
~/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.