Question: Suppose you are designing a login activity for your android app. The android app has two activity (LoginActiviy, NewActivity). Write only the Java Code here
Suppose you are designing a login activity for your android app. The android app has two activity (LoginActiviy, NewActivity). Write only the Java Code here for LoginActivity. The login activity is show in the following figure:
The user name will be admin and password admin. The user has only 3 attempts to try to login, for each wrong trail the number of attempts left will be decremented by one. Once the attempts left is zero the login button should be disabled.
If the user enters the user name and password correctly and press login, A new activity NewActivity should be opened using intent
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
