~/talk

Single activity: Why, when, and how

Talkat Android Dev Summit 2018 · 2018-11-07..11-08· [android]
slides:none on file

Argues that apps benefit from a single-activity architecture using the Navigation Architecture Component to get predictable deep links, shared-scoped view models, and simpler testing. Demonstrates concrete tools: NavController, NavHostFragment, the Safe Args Gradle plugin, FragmentFactory and the new Fragment 1.1 alpha with FragmentScenario (works on device and Robolectric) and ActivityScenario. Warns when multiple activities are still appropriate (multiple tasks, picture-in-picture) and cites a surprising 77-comment debate from 2016 about the idea.

AI-written summary · about

  1. 0:00The role of activities
  2. 2:07Limitations of activities
  3. 5:44Moving to single activity
  4. 9:02Navigation component
  5. 13:28Testing with fragments
  6. 20:51Dependency injection
  7. 25:38Managing tasks and windows
  8. 34:28Dynamic features and conclusion
~/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.