~/talk

Rescuing Old Code with JetPack

TalkinJapaneseat DroidKaigi 2021 · 2021-10-19..10-21· [android]
links:none on file
slides:none on file

Shows concrete steps to modernize legacy Android apps using Jetpack: move business logic from Activities/Fragments into ViewModel to shrink UI and enable testing; replace AsyncTask with Kotlin coroutines/Flow and lifecycleScope (or WorkManager) to prevent leaks/crashes; use Hilt for dependency injection to eliminate global app state and enable mocking; and migrate SharedPreferences to DataStore to keep IO off the UI thread, with before/after code examples and added tests for pure functions.

AI-written summary · about

  1. 0:00Rescuing old code
  2. 2:17Modernize with JetPack
  3. 3:00Incremental improvements
  4. 4:04Testing legacy projects
  5. 6:13Fixing Activity anti-patterns
  6. 8:43Logic to ViewModel
  7. 9:06AsyncTask to coroutines
  8. 10:11Background tasks safely
  9. 12:22Dialogs with LiveData
  10. 12:43App architecture anti-patterns
  11. 13:46Dependency injection
  12. 14:50SharedPreferences migration
  13. 15:53Safe refactoring
  14. 16:35Conclusion
~/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.