All Blogs
SnapHelper
SnapHelper is a helper class in Android that snaps a child view of the RecyclerView into place, like the first visible item, as we see in the Play Store.
Optimization Using ArrayMap and SparseArray
ArrayMap and SparseArray are more memory efficient than HashMap in Android. We should use them for small collections to save memory and reduce GC calls.
Android Development Best Practices
Android best practices include following a recommended architecture, maintaining code quality, fixing memory leaks, using Proguard, and keeping layouts simple.
Creating Custom Annotations
Annotations are metadata, which means information about our code. We will learn how to create our own custom annotations in Java and use them in a class.
Android NDK and RenderScript
Android NDK lets us use C and C++ code in our app, while RenderScript runs heavy computations at high performance. Both aim to improve app performance.
ThreadPoolExecutor in Android
A ThreadPoolExecutor runs tasks using a pool of reusable worker threads that pick tasks from a queue. RxJava and Kotlin Coroutines are built on top of it.
Bitmap Pool in Android
Bitmap pooling in Android reuses the memory of bitmaps that are already available instead of allocating new memory every time, so GC runs less often.