GTU DE Sem6 – 3360704 – 2 – Create sample application with login module.(Check username and password) On successful login, go to next screen. And on failing login, alert user using Toast. Also pass username to next screen

GTU DE Sem6 – 3360704 – 2 – Create sample application with login module.(Check username and password) On successful login, go to next screen. And on failing login, alert user using Toast. Also pass username to next screen

DE Sem6 - 3360704 - 2 - Create sample application with login module

This android application explain how to go from screen 1 to screen 2. In Android there is a terminology used for screen is Activity. So here I have explained how you can go from one activity to another activity.  You can go to another activity using intent. You need to create object of Intent and finally you need to pass that object to StartActivity() method of Android. Here i have am checking username and password, If user enters admin as username and admin as password then he/she is allowed to go to another page, else invalid userid/password message will be displayed on screen.

 

FileName:MainActivity.java

 

FileName: MainActivity2.java

 

FileName: activity_main.xml

 

FileName: activity_main_activity2.xml

 

FileName: AndroidManifest.xml

 

Output after adarsh/adarsh

    DE Sem6 - 3360704 - 2 - Create sample application with login module

Output : after admin/admin 

       DE Sem6 - 3360704 - 2 - Create sample application with login module

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative