~/talk

Android Architecture Component

Talkat Droidcon Dubai 2018 · on Friday, 2018-04-13· [android, frontend-architecture]
links:none on file
slides:none on file

Covers Android Architecture Components with concrete code examples and practical rules: LiveData is lifecycle-aware and only notifies active observers; ViewModel survives configuration changes so network or DB results aren’t lost; Room maps entities to SQL, enforces compile-time query checks and exposes DAOs; Retrofit is used for remote fetches and a Repository becomes the single source of truth. Warns to avoid holding Context in ViewModel (use AndroidViewModel for safe app context) and shows shared ViewModel between fragments.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 5:03Why Android architecture components
  3. 7:13Overview of architecture components
  4. 11:37Problems solved by components
  5. 13:03Google’s proposed architecture
  6. 15:09Lifecycle component explained
  7. 21:28Implementing lifecycle without appcompat
  8. 24:01ViewModel component deep dive
  9. 27:12LiveData in ViewModel
  10. 29:03Sharing data between fragments
  11. 31:14ViewModel with MVP pattern
  12. 33:21LiveData benefits and usage
  13. 36:17Room database introduction
  14. 37:20Room components and setup
  15. 39:05Room queries and compile-time checks
  16. 40:36Testing and error handling
  17. 44:04Custom lifecycle owners
  18. 45:08Fragment vs ViewModel differences
  19. 46:19Q&A session
~/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.