Implementing user login services
In this recipe, we are going to see how to implement login services for our Android app.
Getting ready…
To get started with this recipe, you need to have performed the earlier recipes and should have set up the Android application development kit either on Eclipse IDE or Android Studio. For more information, take a look at the following links:
How to do it…
Let's implement user login services:
- To provide login services to the user, we are going to use the same user model that which we created in the previous recipe. So, refer to the previous recipe for details on the
User
mode. - To log in, we will ask our user to enter the e-mail ID and password. So, our first task is to get a user by its e-mail ID. So, once we have the user details, we can validate the entered password with the password stored in the user table. So, let's write...