Category: Android Example

  • 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 […]

  • Android Runtime Permissions[Updated with Android 11]

    Android Runtime Permissions[Updated with Android 11]

    From the beginning of Android 6.0 Marshmallow, Google has introduced a new runtime permission model, users are not asked for permissions at the time of installation rather developers need to request the permissions at the run time. Only the permissions that are defined in the manifest file can be requested at run time. This helps in […]

  • Setup Gitlab CI For Android [Step By Step]

    Setup Gitlab CI For Android [Step By Step]

    being an android developer, we don’t get a chance to work on Continuous integration most of the time. So, I created this tutorial to learn the GitLab CI with simple steps. GitLab is a complete DevOps platform, delivered as a single application. Continuous integration is a way to avoid build failure and test failure before […]

  • Multiple Resource Folders In Android

    Multiple Resource Folders In Android

    You can manage your resource’s XML files (layout, drawable,..) better, by grouping them into separate subfolders corresponding to the app’s features. Step to Create Multiple Resource Folders in Android Step 1 — Create a parent folder that contains all layouts of our project Switch project tree explorer to Project view. Right-click in res, select New → Directory and name it […]

  • Android Capture Image From Camera Programmatically [Updated]

    Android Capture Image From Camera Programmatically [Updated]

    Do you want to capture an image from the camera and set it into imageview or upload it to the server? then, this is the right post to learn. The camera is a very common feature that lots of apps provide. Most of the required image capture features are in their own application. eg. profile […]

  • How to get current latitude and longitude in android example

    How to get current latitude and longitude in android example

    This Android tutorial is to help learn How to get the current latitude and longitude in the Android platform. Knowing the current location of an android mobile will pave the way for developing many innovative Android apps to solve people’s daily problems. Developing the location-aware application in android needs location providers. Check out my other […]