AAndroid Expert·Nov 11Same Thread, Different Moment: What Dispatchers.Main.immediate Really ChangesBoth run on Android’s main thread, but one queues your coroutine and the other starts it now. Here is what breaks when you forget.13 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11Race, Queue, or Cancel: Choosing the Right flatMap for Your Kotlin FlowHow flatMapMerge, flatMapConcat and flatMapLatest differ on the same input, and the production failure modes each one hides.12 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11Six Builders, One Mental Model: Choosing the Right Kotlin Coroutine Builder in a Production Android AppHow launch, async, runBlocking, coroutineScope, supervisorScope and withContext differ, and the production failure modes that bite.17 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11Why Your Compose Tests Started Failing: The v2 Test Dispatcher ExplainedA one-line import change moved Compose tests to StandardTestDispatcher. Here’s what breaks, why, and how to fix a large suite safely.18 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11Tracing Without Guesswork: Closing the Loop Between Your Laptop Profiler and a Stranger’s PixelConnect androidx.tracing 2.0, macrobenchmarks, and ProfilingManager into one loop that ends “cannot reproduce” tickets for good.13 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11Naming the Callback: Kotlin fun interface Without the Production ScarsSAM conversion cuts the boilerplate, but leaks, re-entrancy, and API drift still bite. Six failure modes and the fixes for each.12 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11One Turnstile or One Lane? Mutex vs. a Single-Thread Executor on AndroidOne thread is not one atomic step. Kotlin’s Mutex vs a single-thread executor, and the production failures that come with each.12 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11The 64-Slot Waiting Room: Why flatMapLatest Still Hands Your UI Yesterday's DataA slow map after flatMapLatest can replay up to 64 stale values. Here’s how conflate, mapLatest, and identity checks fix it in Kotlin Flow.10 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11A Chat Finder That Never Loses Its Place: Telegram-Style Search with Flow.scanOne MutableSharedFlow and one scan reducer give you match counts, up/down navigation, highlighting, and scroll-to-match without locks.14 min read·android-expert.hashnode.dev
AAndroid Expert·Nov 11One Snackbar, Three Streams: Choosing Between StateFlow, SharedFlow, and ChannelWhy your snackbar fires twice after rotation, and how to choose the right stream for UI state, one-shot events, event buses, and queues.16 min read·android-expert.hashnode.dev