android
Why Wrapping a Suspend Function in withContext(Dispatchers.IO) Is Usually a Mistake
Kotlin’s suspend functions carry an implicit promise. A main-safe suspend function takes care of its own threading, no matter who calls it. In real codebases, callers break that promise constantly. A common defensive habit is wrapping every call that might touch disk or network in withContext(Dispatchers.IO). Developers do it even when the function being called … Read more
Why Your Predictive Back Animation Gets Stuck When the Gesture Is Canceled
The predictive back gesture is no longer optional. For apps targeting Android 16 (API level 36), predictive back system animations are enabled by default. Since August 31, 2026, Google Play requires new apps and app updates to target API level 36. So any app still shipping updates is affected. If your app has a custom … Read more