Android Architecture for the Subway
summary
A concrete recipe: the New York Times Crossword guarantees first-time offline play by packing canned puzzles into the APK and seeding a cache so a fresh install immediately returns content; the demo app serves cat images from assets and proves it works. Architecture uses a repository pattern with Retrofit + Room and the open‑source store library (barcode keys, pluggable persisters, get vs fetch semantics), 1‑hour cache expiry, and background sync via JobScheduler or Firebase JobDispatcher (runs at 6am and 4pm in one product).
AI-written summary · about
chapters (10)
- 0:00Start
- 0:14Why the Subway
- 5:26Single Responsibility Pattern
- 10:08Persistence
- 10:31Parser
- 12:04Force a Fetch
- 16:25Android Assets
- 18:00Shared Prefs
- 19:47Job Scheduler
- 24:55Media Caching
related talks
39mOffline Applications With Architecture Components, Retrofit, Room, Dagger, RxJava
49mBuilding for the future at Snapchat
42mAndroid Application Architecture
40mClean, Easy & Stable Android Architecture
39mAndroid Architecture Components: fit like a glove
42mIngredients for a healthy codebase (en)
37mGraphQL on Android is here!
34mHow to reactively load and cache data without even trying
