Vimal PrakashTo Use Dagger.Lazy<T> Or Not ToSyntax for using Lazy<T> lateinit var expensiveObject: Lazy<ExpensiveObject> expensiveObject.get().someMethod()Apr 26, 2020Apr 26, 2020
Vimal PrakashDependency Injection of ViewModel with Dagger 2Below is a sample Android code for DI of VM with Dagger 2Apr 10, 2020Apr 10, 2020
Vimal PrakashTo Field Inject or Constructor InjectHere I outline the type of Injection technique you should typically choose for a given scenario. I assume you are already aware of what…Apr 10, 2020Apr 10, 2020
Vimal PrakashThe missing factor of Clone() in JavaMany Java developers, event most experienced, do not have a insight of how exactly Clone() works in Java. I will try to simplify the…Feb 16, 2020Feb 16, 2020
Vimal PrakashLiveData with Coroutines & Flow Cheat SheetAs an Android developer we always wanted to avoid life cycles and not choose scope for start and stop operations, instead we want this to…Jan 28, 20201Jan 28, 20201
Vimal PrakashKotlin Coroutines SimplifiedWhen I started with Coroutines for the first time, I thought it could be something complex to learn and could be a replacement for threads…Jan 27, 2020Jan 27, 2020
Vimal PrakashMaking your Android Device to be a KIOSKSteps to achieve our goal: Develop a KIOSK app for Android devices Make the App to be the device ownerOct 30, 20192Oct 30, 20192
Vimal PrakashHow to efficiently call API and update each item dynamically on a RecyclerView in AndroidWe would have used libraries like Picasso to download and display images for items on a RecyclerView in Android. How about doing the same…Oct 29, 20192Oct 29, 20192
Vimal PrakashRules of OptimizationOptimization is a process of fine tuning your program or part of program to make it perform better in terms of time, memory or other…Apr 28, 2018Apr 28, 2018
Vimal PrakashRefactoring in Software EngineeringRefactoring could be defined as a process of changing a software system in such a way that it does not alter the external behavior of the…Apr 28, 2018Apr 28, 2018