Image for post
Image for post

To make user experience smoother many apps are moving towards biometric login instead of traditional username and password based process.

By using biometric login, instead of having to remember an account username and password every time to open your app, users can just use their biometric credentials to confirm their presence and authorize access to the private content.

How Biometric Authentication works

In username-password authentication, the app sends the credentials to a server and then the server generates and returns a token for that particular user which will be used to login in the app.

In the case of biometric, things get little bit different. This time also you will have to use username-password and get a token from the server but the token will be encrypted using a secret key backed up by the user’s biometrics and then it will be stored in the memory of the app. Next time the user needs to login, instead of asking the server for the token, the stored token will be decrypted using their biometrics. …


Image for post
Image for post

In this article I will show you how to make a custom bottom navigation view in your Android Projects.

So first of all lets update our build.gradle files.

Open your build.gradle(app) file and add some sruffs there.


Image for post
Image for post

Hello developers, in this article I am going to cover a new member of Jetpack Library 🚀 called DataStore.

We are working on shared preferences for a long time to store some of the data locally in our android apps and we know how shared preferences proved to be very useful to support our use cases.

To make our lives easier Android has introduced DataStore to implement Shared Preferences in our apps in a more efficient way.

DataStore provides two types of implementation,i.e; Preferences DataStore and Proto DataStore. Today we are looking at Preferences DataStore.

So, why should we use Preferences DataStore? …


Image for post
Image for post

These are the mostly used terms while building an Android app. To optimize our networks calls and to prevent unnecessary creation of objects, one should apply these concepts during the development phase.

In this article we are going to see how to implement these by building a sample app.

So let’s get started!

First of all create a new project in Android Studio and let the gradle build finish!

Step 1: Update build.gradle

The very first step is to modify our build.gradle files by adding these stuffs. Add dagger plugins and some dependencies in your app level build.gradle file as shown below.

build.gradle (app…


Image for post
Image for post

Machine Learning is at its highest peak these days and most of the apps are now running ML within it.

In this article we will see how to integrate Machine Learning into Android app with TensorFlow by making a simple app alongside.

First we will create and train a TensorFlow model on Google Colab and then we will integrate that model into our Android App.

Now, let’s dive into the code..

First to all go to Google Colab and create a new notebook.

Google colab saves your time from installing libraries and you can directly start coding.

First we will import all the necessary libraries that are required. …


Image for post
Image for post

In the previous articles, I have explained you how to use GET and POST methods to fetch and create new records in android using retrofit. In this article, I am going to show you how to delete a record using DELETE method using retrofit.

For this tutorial, I am using https://jsonplaceholder.typicode.com/

Now first add new method to ApiInterface.kt

Next, similarly add a new function to Home Repository as well

Next, we will call this method from our viewmodel class

Now we need to delete a particular post on click of the cancel button. The cancel button is in the HomeAdapter class but we need to call the API from our activity, in this case we need to add a listener in our adapter class which will tell our Main Activity, which post needs to delete. …


Image for post
Image for post

In the previous article, I showed you how to fetch records via GET request using retrofit(For part 1 click here) . In this article, I am going to show how to create a new record using POST request.

For this tutorial, I am using https://jsonplaceholder.typicode.com/

Now we will add a function to our API Interface to create a post.

Now create a function in HomeRepository called as createPost

Next, call this function from the viewmodel class

Now let’s create a menu file to display create post menu

Next, we will show this menu in Main Activity and on click of Create Post menu we will open a dialog in which we ask for title and body of new post.


Image for post
Image for post

While developing an Android application we have to communicate to servers and databases for data. Fetching, creating and manipulating of data from android can be done by using REST APIs. In this article I am going to show you how to implement these APIs in an Android application using Retrofit library.

This series is divided into 3 parts: Part 1 covers the implementation of GET request, Part 2 covers POST request and the Part 3, the final one covers the DELETE request.

To switch to next parts scroll down to bottom of this article.

For this series, I am using https://jsonplaceholder.typicode.com/ for sample REST APIs. …

About

Rahul Ray

Android app developer at ManthonGo. Persuing M.sc. Informatics at Institute of informatics and Communication (IIC), University of Delhi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store