Series · 5 parts · 31 min
Android Foundations
The plumbing every serious app needs: dependency injection, multiple API clients, encrypted storage, printers and test data.
- Part 01Three Retrofit Clients in One Android App with Hilt QualifiersManaging unauthenticated, OAuth 1.0, and Bearer token APIs in a single app requires isolated OkHttpClient instances. This post covers a Hilt qualifier pattern that eliminates injection ambiguity across all three.5 min read
- Part 02Encrypted Token Storage on Android with EncryptedSharedPreferences and HiltPlain SharedPreferences stores tokens as cleartext in a world-readable XML file. This post covers a production TokenStore backed by EncryptedSharedPreferences, lazily initialised and injected as a Hilt singleton.5 min read
- Part 03Seeding a Room Database via ADB BroadcastReceiver in KotlinManual test data entry wastes development time. This post covers a zero-friction Room database seeder using a BroadcastReceiver, Koin DI, and a single make command.7 min read
- Part 04Printing Labels from Android Using the Brother QL SDKThe Brother printer SDK documentation assumes a Java mindset. This post covers a production Kotlin integration for QL-series label printers over Wi-Fi, including bitmap generation, coroutine bridging, and Mutex-guarded print sessions.6 min read
- Part 05Android Project Docs with MkDocs, Dokka, and Firebase HostingMost Android projects ship with no documentation. Build a complete setup, MkDocs Material for the site, Dokka for API reference, Firebase Hosting for deployment, and a GitHub Actions pipeline that ships on every PR.8 min read