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…
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…
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!
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.
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…
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 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…
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.
Android app developer at ManthonGo. Persuing M.sc. Informatics at Institute of informatics and Communication (IIC), University of Delhi