Kapil SachanAnti-Pattern: Stop Leaking Kotlin Flow Collectors in Your Android ViewModel 🤔Using Kotlin Flows in Android ViewModels is powerful for managing data updates, but improper usage of Flow.collect() can lead to memory…Aug 317Aug 317
Kapil SachaninGlanceHow we improved our 1Weather Android app cold startup time by over 70% and slow cold start sessions…At 1Weather, we serve over 100 million users worldwide, meeting the needs of a vast and varied user base. Our app provides 10-day forecasts…Aug 217Aug 217
Kapil SachanThe Art of Delegation: Image Loading in Android! 🤖 🚀When it comes to displaying images in Android, there are a lot of ways to do it. However, with so many options, it can be tough to choose…Jan 31, 20231Jan 31, 20231
Kapil SachanBest Practice: How are you handling complex “null” checks in Kotlin?You can use the “?.let” operator in Kotlin to check if the value of a variable is NULL. But sometimes there are more complex cases to check…Jan 27, 2023Jan 27, 2023
Kapil SachanWhy isn’t my coroutine’s work stopping? 🫣🤔😢In development, as in life, we know it’s important to avoid doing more work than needed as it can waste memory and energy. This principle…Jan 27, 2023Jan 27, 2023
Kapil SachanLatest Method: How to get Current Location (Latitude and Longitude) in Android & Give support for…This tutorial helps you to learn How to get the current latitude and longitude in the Android.Dec 26, 2020Dec 26, 2020