Skip to content
MoboLogic+

MoboLogic+

  • Android
  • Kotlin
  • Python
  • Contact Us
  • My Account
  • Registration
MoboLogic+
MoboLogic+
  • Android | Kotlin - Android

    How to service the data on screen orientation change in MVVM android

    BySunil Gupta September 11, 2025September 11, 2025

    Handling screen orientation changes is a classic challenge in Android, and the MVVM architecture with Android Jetpack provides an elegant and robust solution. MVVM Core Principle: Separate UI from Data The ViewModel is designed to survive configuration changes (like rotation). The UI (Activity/Fragment) is destroyed and recreated, but the same ViewModel instance is used for…

    Read More How to service the data on screen orientation change in MVVM androidContinue

  • Upgrade the database table without losing the existing data of the app in Android
    Android | Kotlin - Android

    Upgrade the database table without losing the existing data of the app in Android

    BySunil Gupta September 10, 2025

    Upgrading an Android SQLite database without losing data is a fundamental task. By default when we do the upgrade it generally drop the table and recreate the table again. In this the existing user data will be lost and create a major issue with existing user. Here’s a clear, step-by-step guide on how to do…

    Read More Upgrade the database table without losing the existing data of the app in AndroidContinue

  • What is the best practice to use Kotlin Flow?
    Android | Kotlin - Android

    What is the best practice to use Kotlin Flow?

    BySunil Gupta September 9, 2025

    Use Flows to represent streams of data that are asynchronous and can change over time. They are the cornerstone of a reactive and lifecycle-aware app. 1. Choosing the Right Type of Flow Flow Type Purpose Best For Flow<T> Cold stream that emits data when collected. Doesn’t hold state. Data layer: Streaming results from Room DB,…

    Read More What is the best practice to use Kotlin Flow?Continue

  • why do we need to use the Jetpack security in android?
    Android | Kotlin - Android

    why do we need to use the Jetpack security in android?

    BySunil Gupta September 9, 2025September 9, 2025

    We need Jetpack Security in Android mainly because it helps developers easily and securely store sensitive data without having to implement complicated cryptography themselves. What is Jetpack Security? Jetpack Security (androidx.security) is an Android Jetpack library that provides robust and easy-to-use security best practices for storing data on a user’s device. It’s designed to simplify the process of…

    Read More why do we need to use the Jetpack security in android?Continue

  • Best approach to create the splash screen in android
    Android | Kotlin - Android

    Best approach to create the splash screen in android

    BySunil Gupta September 8, 2025

    The “best” approach has evolved significantly. The modern, recommended approach by Google is to use the SplashScreen API (Core SplashScreen library) introduced in Android 12 (API 31) and backported to all Android versions through AndroidX. This approach ensures a consistent, performant, and flicker-free splash screen experience across the vast majority of devices. Recommended Approach: SplashScreen…

    Read More Best approach to create the splash screen in androidContinue

  • How to make instant search from server by using Kotlin Coroutines
    Android | Kotlin - Android | Kotlin Flow

    How to make instant search from server by using Kotlin Coroutines

    BySunil Gupta August 29, 2025August 29, 2025

    Implementing an instant search (also called “search-as-you-type”) from a server using Kotlin Coroutines is a classic use case for coroutines and flows. The key is to debounce user input to avoid flooding the server and cancel previous requests to avoid out-of-order results. Here’s a step-by-step guide with best practices. We’ll use a reactive approach with…

    Read More How to make instant search from server by using Kotlin CoroutinesContinue

  • Why Kotlin Flow to use in place of LiveData in some cases in Android
    Android | Kotlin - Android | Kotlin Flow

    Why Kotlin Flow to use in place of LiveData in some cases in Android

    BySunil Gupta August 28, 2025August 28, 2025

    The Flow API is the part of Kotlin Coroutines, offers several advantages. Unlike LiveData, Flow manages multiple values as streams. It doesn’t require a LifecycleOwner and is always active, meaning values can be collected as long as the flow is active. Additionally, Flow enables using Kotlin Coroutines features like exception handling, flow control, and operator…

    Read More Why Kotlin Flow to use in place of LiveData in some cases in AndroidContinue

  • Hide your production API key or any sensitive data in Android
    Android | Kotlin - Android

    Hide your production API key or any sensitive data in Android

    BySunil Gupta January 27, 2023January 27, 2023

    Hi everyone, In this article, we are going to learn how to hide the production API key or any sensitive data to share with the app. In every application, we used many sensitive data like API key or app id or secret key to use in our app.  As we know this information/data is very…

    Read More Hide your production API key or any sensitive data in AndroidContinue

  • How to handle the localisation or multi language support in android with examples?
    Android | Kotlin - Android

    How to handle the localisation or multi language support in android with examples?

    BySunil Gupta November 4, 2022

    Hello everyone, Today in this article, we are going to learn about localisation to support the multiple languages in our android apps. Localisation is the basic need for the app as we want to engage the app for the different regions to make them understand their language. Generally, we handle the localisation in two different…

    Read More How to handle the localisation or multi language support in android with examples?Continue

  • How to convert any callback to Coroutines and use them in Kotlin Android?
    Android | Kotlin - Android

    How to convert any callback to Coroutines and use them in Kotlin Android?

    BySunil Gupta October 25, 2022October 25, 2022

    Hello everyone, In this article, we are going to learn something to handle the callback by using Kotlin Coroutines. As we are already familiar with Coroutines in my earlier post here get started Coroutines. Alright, then let’s started to learn about the deal with callback in coroutines.  In android, we mostly use the UseCase to…

    Read More How to convert any callback to Coroutines and use them in Kotlin Android?Continue

Page navigation

1 2 3 … 10 Next PageNext

© 2026 MoboLogic+

  • Android
  • Kotlin
  • Python
  • Contact Us
  • My Account
  • Registration
 

Loading Comments...