Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new Android project called Assignment1. Set the application name to YourName . Create the first Activity and name it as YourName_LoginActivity . Wrong

Create a new Android project called Assignment1.

Set the application name to YourName. Create the first Activity and name it as YourName_LoginActivity.

Wrong username or password

In the LoginActivity, design a login form to input user name and password as well as a LOGIN button as displayed in image below. The user can input his/her name and password. Suppose the required username =sa and required password= sa

Create a second Activity called YourName_SecondActivity. When the user clicks on LOGIN button, compare the entered username and password with sa. If right, the SecondActivity should be started through an intent. The intent should carry first activity name or username and display it in a text view as shown in figure above. If password or username is wrong, a red label appears on the first activity stating wrong username or password (screenshot 3)

Requirement:

Attach both xml and java code for your activities.

image text in transcribed

"a 10:44 6:00 6:00 ABC SecondActivity ABC Login Page Login Page Welcome ABC Username password Username passworo LOGIN Wrong username or password

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Organize and support your main points

Answered: 1 week ago

Question

Move smoothly from point to point

Answered: 1 week ago

Question

Outlining Your Speech?

Answered: 1 week ago