~/talk

Modern Android: How to ditch Activities and Fragments

Talkat Android Makers 2017 · on Tuesday, 2017-04-11· [frontend-architecture, android]

Claim: adopt a single Activity architecture and use Magellan so screens are plain Java objects, screens survive rotation while views are recreated, and navigation is a stack-driven navigator so you literally call goTo(screen). Implementation details: constructor-based screens, view-swapping container, dialog recreation, an Rx plugin for auto-unsubscribe, testing benefits, and a production 1.0 used for ~1.5 years with claimed productivity parity with iOS teams. Trade-offs: some SDK fragments (maps) need adapters, process-kill still restarts app, and activity-result plumbing is left to implement.

AI-written summary · about

  1. 0:00Start
  2. 1:42Android Lifecycle
  3. 3:20Full Activity Lifecycle
  4. 5:34The Problems with the Activities and Fragments
  5. 7:09Single Activity Architecture
  6. 9:58Architecture
  7. 11:22Model View Presenter
  8. 12:50Why Separate the Logic from the Views
  9. 13:52Test Your Business Logic
  10. 22:27Headless Fragment
  11. 27:05Auto Unsubscribe
  12. 31:55How Will You Manage the Runtime Permissions
  13. 32:57How Do You Manage Dialogue
  14. 33:19Show Dialogue
  15. 34:41Dialogue Fragment
  16. 36:26Data Loading
  17. 39:36State Saving
  18. 42:32Productivity
~/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.