Sagar Malhotrasagar0-0.hashnode.dev·Dec 17, 2024Understanding Low Memory Management in Android: Kswapd & LMKAs a mobile operating system, Android has to deal with limited memory resources. The OS carefully monitors memory usage and takes steps to free up memory when it becomes low. In this article, we discuss how Android allocates memory and reacts to low-...Android
Khush Panchalkhushpanchal.hashnode.dev·Jun 24, 2024Step by Step guide to create basic MVVM Application in AndroidIn this blog we will create a basic mvvm application where user will fetch some data from the api and show it to the UI as a list. For the sake of this article, we will use OMDb (The Open Movie Database) API to fetch the title and thumbnail image of ...Kotlin
Khush Panchalkhushpanchal.hashnode.dev·Jun 2, 2024Singleton: How to create?In this article, we will understand the Singleton class, the pros and cons of using Singleton, and finally, the ways of writing a Singleton class in Kotlin. What is Singleton? Singleton is a creational design pattern that ensures a single instance of...Android
Khush Panchalkhushpanchal.hashnode.dev·May 20, 2024Understanding Kotlin’s Any, Unit, NothingKotlin offers unique types that can be quite different from what developers are used to in Java. In this blog, we will explore three such types: Any, Unit, and Nothing. Any //SOURCE CODE package kotlin /** * The root of the Kotlin class hierarchy. E...Kotlin
Khush Panchalkhushpanchal.hashnode.dev·May 5, 2024Ketch — Android File Downloader LibraryAbout Ketch Ketch is simple, powerful, customisable file downloader library for Android built entirely in Kotlin. It simplifies the process of downloading files in Android applications by leveraging the power of WorkManager. Ketch guarantees the down...Kotlin
Khush Panchalkhushpanchal.hashnode.dev·Apr 29, 2024Inline Function — When to use?In this article, we will investigate the Kotlin inline function in detail and come to a conclusion on when and why to use the inline function. What are inline functions? To make the function inline, we will add the inline keyword before fun to conver...Kotlin
Khush Panchalkhushpanchal.hashnode.dev·Apr 9, 2024Demystify coroutineScope (not CoroutineScope)In this article we will deep dive into coroutineScope (it’s small c) Difference between coroutineScope and CoroutineScope? Difference between coroutineScope and supervisorScope? Difference between coroutineScope and withContext? Terminologies Be...Android
Khush Panchalkhushpanchal.hashnode.dev·Apr 1, 2024Functional Interface in KotlinWhat is Functional Interface or SAM (Single Abstract Method)? Functional Interface which is also known as Single Abstract Method (or SAM) is just an interface with only one abstract method (method without implementation). Representation Functional i...Kotlin
Khush Panchalkhushpanchal.hashnode.dev·Mar 27, 2024Kotlin Delegation SimplifiedIntroduction In this blog I will explain the delegates in Kotlin in simple terms. Before jumping to the topic, let’s understand the true English meaning of Delegation. Delegation — Passing responsibility to someone else. In programming we can see d...Delegation Pattern
Khush Panchalkhushpanchal.hashnode.dev·Mar 18, 2024Does Kotlin have primitive data types?In this blog I have came to the conclusion whether Kotlin actually have primitive data types or not?Before jumping on the conclusion, let’s start with java:- Java Representation Primitive data types are the basic data types that are predefined in th...Kotlin