You are on page 1of 1

Assignment 1

1. Create a simple app with following capabilities in the 1st Activity file:

a) 2 text fields to accept entry of username and password


b) Button to submit the username and password
c) On click of the button, the value in text field (username) should get validated for the
following rule:
i. Username will accept A-Z, a-z only, no numerals, no special characters
ii. Username length should be in the range of min 8 char and max of 12 char
d) Username is not correct, toast message to display, "invalid entry in Username"
e) If validation is true, username and password is submitted. (In the 1st activity class check for
Hard coded Username and Password values.) If they match, launch welcome user
activity(2nd activity file).
f) 2nd activity should display "I am good to go Android" and should have logout button.
g) On clicking logout button, exit from the App. (you may use a dialog box for this)

2. Create a simple app to do basic math calculations as shown in the interface below.

Num Num Ans Num 1 and 2: Textedit


1 2
Ans: TextView
1 2 3 +
0 - 9, +,-,/,*,=,C : buttons
4 5 6 -

7 8 9 /

C 0 = *

Avoid copying from each other. The code will be check for plagiarism. If found to be copied both
source and destination copies will be discarded and awarded zero marks. Deadline for this
assignment submission will be 09th Oct, 2016.

Both the project folders have to be zipped as one single zip file and named as follows
before uploading to Taxila.

SDPD_Assignment1_<name>_<bitsID>_<date of submission in ddmmyy>.zip

You might also like