Sagar Malhotrasagar0-0.hashnode.dev·Apr 16, 2024How Suspend Functions Work in Kotlin: Under the hoodThe suspension capability is the most essential feature upon which all other Kotlin Coroutines concepts are built. Your main goal in this article will be to gain a solid understanding of how it works internally. In one line: Suspending a coroutine m...Discussandro
Sagar Malhotrasagar0-0.hashnode.dev·Mar 23, 2024Understanding Jetpack Compose: Internal Implementation and WorkingThis article is for you, if you are desperate to see what is going on inside the functions(Composables) you are using to show your app's UI, update the UI states, show animations, and even more. You can use the knowledge in this article to understand...Discuss·10 likes·52 readsProgramming Blogs
Sagar Malhotrasagar0-0.hashnode.dev·Mar 9, 2024Add Multilingual support (Multiple Languages) to your Android AppSupporting multiple languages is important to scale up your application and reach the masses. Around 25% of India and 64% of Europe's working adult population are multilingual, and even the USA saw a ~194% increase in multilingual population. (Source...Discuss·10 likesAndroid
Sagar Malhotrasagar0-0.hashnode.dev·Feb 15, 2024Everything about JVMField, JVMOverloads, JVMName, and JVMStatic annotations in KotlinThe mentioned four JVMField, JVMOverloads, JVMName, and JVMStatic annotations are used for easier and convenient inter-operability between Kotlin and JAVA code.Used in examples like: We can create the object of a Kotlin class in our JAVA files. Ins...DiscussProgramming Blogs
Sagar Malhotrasagar0-0.hashnode.dev·Sep 11, 2023Building a Referral system: Play Install Referrer Library in AndroidPre-requisites: A unique referral code generation mechanism for every user(should be done in the backend). Testing the feature can be done in the developer release of your app. Applying and checking the referral code validation should be done with...Discuss·28 readsAndroid
Sagar Malhotrasagar0-0.hashnode.dev·Sep 5, 2023Firebase Cloud Messaging in Android : Efficiently handling the Device TokenFCM workflow Overview: A unique identifier of every device is generated each time the fresh(First launch, clear data, re-installing, etc) app is there. We’ll call it Device FCM Token or just Token. Token is required to send PUSH notifications to th...Discuss·49 readsAndroid
Sagar Malhotrasagar0-0.hashnode.dev·Aug 17, 2023Testing Retrofit API calls in AndroidRetrofit is a type-safe HTTP-Client that you are using in your Android project to consume the API responses you want. Why need to test this? Your API development is independent of your Android project and it might have some structural changes over t...Discuss·10 likes·56 readsAndroid
Sagar Malhotrasagar0-0.hashnode.dev·Aug 13, 2023ViewModel Testing with JUnit5, MockK & TurbineIntroduction: Unit testing your viewmodel class is one of the most important steps in your Android application development as it is the only place where you manage all your UiState and interact with the data layer, so you need to ensure everything wo...Discuss·79 readsAndroid
Sagar Malhotrasagar0-0.hashnode.dev·Aug 12, 2023Using Proto Datastore in Jetpack compose with HiltWhat is Proto Datastore: One of the downsides of SharedPreferences and Preferences DataStore is that there is no way to define a schema or to ensure that keys are accessed with the correct type. Proto DataStore addresses this problem by using Protoco...Discuss·113 readsAndroid
Sagar Malhotrasagar0-0.hashnode.dev·Jul 28, 2023Use GoogleMaps and get Marker Address Details in Jetpack ComposeOutput: Pre-requisites: Prior knowledge of MVVM & Jetpack compose is mandatory, I won’t explain every single thing. Better to test it on a Physical device. NOTE: We will only focus on the functionality and not the UI. You can create your UI an...Discuss·10 likes·80 readsAndroid