

Step 10) The name of the default activity will be the content name of this second activity. Now the user activity is our default activity which will open whenever we are going to authenticate the user. Launcher activity means that the first activity which will appear is launcher activity which is our login activity. Step 9) Now there can only be one launcher activity for your app, therefore, the second activity will be a default activity. So we are just going to copy this intent filter tag from our login activity and paste it in the user activity. In our first activity, which is our login activity, this intent filter is already there, But in the user activity there is only name and label no intent filters available. Step 8) Now we have to set up the intent filter for the second activity (main activity). Inside this folder, there will be an xml file called ‘android manifest’ file (androidmanifest.xml file) click this and you will see both activity, one is our main activity or our launcher activity and the other is our user activity.

Step 7) Now in the app folder there will be a folder called ‘manifests’ go to your manifest folder. Step 6) So now we have two activities: - one is ‘login’ activity (activity_login.xml) which will be used to create our login page and the other is ‘user’activity (activity_login.xml) which will open after authentication of the user. So in your app, just go to this ‘resources’ folder or res folder and inside this, you will be able to see this folder called ‘ layout’ and create a new blank activity and name the activity for example as " user" and click finish Step 5) Now create one more activity so that we can redirect the user if he provides valid login and password so that it can be a users activity so that user can access some screen or some activity after login. Step 4) So now our project is set up and now this is the first activity we can see here which is ‘login activity’.

And give the activity name for example ‘login’. Step 3) Now choose the blank activity here, click next. Step 2) Now click next and we are going to make this project for phone and tablets and therefore make sure that you choose the version with minimum SDK which covers hundred percent of devices. Step 1) First create a new android studio project and give a name to your new application. Please follow the steps below for designing a Login Application: In the first part we will learn how to design our login application and set up all the resources and in the second part, we will write the backend code for this application. This tutorial explains how to create a simple login application using the Android Studio. A Login screen is the screen where the user is asked to fill his credential like email, name etc to login into any particular application.
