← All notes

Series · 5 parts · 31 min

Android Foundations

The plumbing every serious app needs: dependency injection, multiple API clients, encrypted storage, printers and test data.

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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