The engineering notebook
RSS feed#kotlin
Articles, practical guides, and engineering notes on kotlin.
By Ashish Bhakhand 108 published articles
Explore the articles
18 articles
Reset filtersTesting Room Migrations Instead of Hoping They Work
Upgrade real historical schemas and verify both data preservation and new database invariants.
Testing Coroutine ViewModels with Controlled Dispatchers
Drive intents, virtual time, flows, cancellation, and repository outcomes deterministically.
Privacy-Safe Sentry and Analytics on Android
Collect actionable mobile diagnostics while redacting health values, messages, tokens, and raw user identity.
Type-Safe Navigation in a Large Compose Application
Represent destinations and arguments as Kotlin types, then coordinate authentication, tabs, and restored state explicitly.
Jetpack Glance Widgets with Published Snapshots
Keep Android widgets fast and stable by publishing a small display model from the main application.
Building a Foreground Activity-Tracking Service on Android
Keep active workout timing and sensor work alive with explicit lifecycle, notification, and persistence rules.
Designing Stable Health Sync Identities Across Android Devices
Prevent duplicate history by deriving server identity from semantic data instead of installation-local rows.
Reliable Background Health Sync with WorkManager
Schedule constrained, resumable Android work while keeping foreground refresh and worker execution on one coordinator.
Health Connect Synchronization Beyond Permission Requests
Handle availability, per-type permissions, incremental reads, source identity, and normalized daily data.