~/talk

Single Activity by Example

Talkat droidcon Italy 2019 · 2019-04-04..04-05· [android, frontend-architecture]
slides:none on file

Claim: converting every screen into fragments and running a true single‑activity app works in production and simplifies lifecycle, analytics and startup checks. Concrete tools and patterns: AndroidX navigation library, Dagger Android, Play Store subscription API, setReorderingAllowed to avoid redundant view churn, primaryNavigationFragment for depth‑first back handling, and a replaceStack strategy to rebuild back stacks. A real NHL‑based app reaches four–five nested fragment layers, removes splash activities, and runs reliably in production.

AI-written summary · about

  1. 0:00Start
  2. 3:15Match Detail
  3. 3:38Fragment Navigation
  4. 4:03What Is a Back Stack
  5. 5:52Build a Back Stack
  6. 9:26State Changes
  7. 11:03Primary Navigation Fragment
  8. 11:32Primary Navigation Fragments
  9. 16:47Replaced Back Stack
  10. 17:54Scalability
  11. 20:43Onboarding Flow
  12. 25:53Bottom Navigation
  13. 29:01Startup Checks
  14. 32:30Key Takeaways and Tips
  15. 34:10Caveats Related to Fragments
  16. 36:06Transitions Support in Fragments
  17. 36:37Sample Project
~/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.