Tag: Retrofit

  • Creating android app using MVVM + Coroutines + Flow + Hilt

    Creating android app using MVVM + Coroutines + Flow + Hilt

    In this tutorial, I will explain the MVVM architecture with kotlin coroutines and kotlin flow with hilt dependency injection. Also, I will explain the Room database with the flow in this tutorial. let’s begin with a short introduction about the features I will use in this tutorial. What is MVVM? MVVM (Model-View-ViewModel) pattern helps to […]

  • Pagination with Paging 3 in Android Example

    Pagination with Paging 3 in Android Example

    The Paging 3 library helps you to load and display data from a larger dataset from local storage or from API. This will helps your app to use both network and system memory more efficiently. Paging 3 library is designed to fit into the recommended Android app architecture, integrate cleanly with other Jetpack components, and […]

  • Jetpack compose – Retrofit with Recyclerview

    Jetpack compose – Retrofit with Recyclerview

    In this post, I am going to explain about using the retrofit and recyclerview in jetpack compose with MVVM pattern. Everybody knows that the Jetpack Compose is a modern toolkit designed to simplify UI development. Before jumping into this example on retrofit and recyclerview. I have created posts on jetpack compose components, layouts, modifiers, and […]

  • MVVM with Kotlin Coroutines and Retrofit [Example]

    MVVM with Kotlin Coroutines and Retrofit [Example]

    Coroutines are a neat new feature of the Kotlin language that allows us to write asynchronous code in a more idiomatic way. — This also means you can write asynchronous code the same way you would normally write synchronous code in your project. Already, I have explained MVVM in detail in another post. Please check that […]

  • MVVM With Retrofit and Recyclerview in Kotlin [Example]

    MVVM With Retrofit and Recyclerview in Kotlin [Example]

    MVVM architecture is a Model-View-ViewModel architecture that removes the tight coupling between each component. Most importantly, in this architecture, the children don’t have a direct reference to the parent, they only have the reference by observables. What is MVVM? MVVM stands for Model, View, ViewModel. Model: This holds the data of the application. It cannot directly talk to […]

  • Ultimate Guide To Material Cardview with Recyclerview In Android

    Ultimate Guide To Material Cardview with Recyclerview In Android

    Cardview Android is a new widget for Android, which can be used to display a card sort of layout in android. Cardview was introduced in Material Design in API level 21 (Android 5.0 i.e Lollipop). Since Cardview is part of material design. It’s such a view that has all material design properties, most importantly showing […]

  • Easy Guide To Setup Retrofit In Android With example

    Easy Guide To Setup Retrofit In Android With example

    In this Retrofit Android tutorial, I am going to explain how to use the Retrofit REST client to consume the Rest Web services. Basically, Retrofit was developed by Square and It’s a type-safe REST client for Android. In this post, I am explaining code in java. Please check my other post for the Retrofit example in […]

  • Easy Setup To Retrofit In Android With Example

    Easy Setup To Retrofit In Android With Example

    In this Retrofit Android tutorial, I am going to explain how to use the Retrofit REST client to consume the Rest Web services. Basically, Retrofit was developed by square and It’s a type-safe REST client for Android. In this post, I am explaining code in java. Please check my other post for the Retrofit example in […]

  • Best way to mock Retrofit Response In Android

    Best way to mock Retrofit Response In Android

    An easier way is to ask the backend developer to create the API service and just send fake content for the sake of it. The underlying notion is that we are not backend developers and it is not our responsibility to provide the endpoint. In this article, we’ll explore the option which involves using Interceptors offered by OkHttp to […]