Patterns for Safe Refactoring of Android Apps
summary
Shows a concrete, incremental 5-step recipe to refactor an Android MVC app into Google’s Recommended App Architecture. Steps: extract an OkHttp remote data source, add a repository, replace AsyncTask with ViewModel + LiveData + coroutines, and finish with data binding and UI tests. Emphasizes writing unit and UI tests before swapping implementations, making each change non‑destructive, and provides a sample repo where each step compiles and preserves correct behavior.
AI-written summary · about
chapters (7)
- 0:00Start
- 2:16From scratch
- 7:05Root cause analysis and countermeasures
- 8:15Safe refactoring
- 16:11Sample repository
- 21:18How to fix black boxes
- 23:30Introducing ViewModel
related talks
42mIngredients for a healthy codebase (en)
32mEffective Android Architecture
27mHalf Way to clean architecture
41mStrategies and tactics for incrementally refactoring while keeping the app releasable
28mHands-on Android Architecture & Architecture Components
01h 07mA Modern Approach to Android App Architecture
40mOur way to the clean architecture
22mReactive, Clean Architecture and Android Architecture Components, a solid formula for a MVVM based a
