Final Term Paper Mobile Application Development - Theory
Final Term Paper Mobile Application Development - Theory
RAWALPINDI CAMPUS
Final Term Examinations Theory (Spring-2020)
Time to Solve and Submit to EXAM LMS: 5 Hours Date: 25 July, 2020
Note: Be brief and to the point. Attempt all the 3 questions. Please mention your name, section
and reg# on the solution file also. Only write Java Code for the question on your paper.
Q No. 1: Marks 12
Instructions:
Make an android app using Google Map which displays the current location of device. You
have to use a google map activity. You have to write .JAVA file code and PERMISSION
(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION and INTERNET) lines of
code in MANIFEST.XML only. The GUI of an activity should be like as given below.
Page 1 of 3
Q No. 2: Marks- 12
Instructions:
Your task is to create an Android UI with one text field, centered at the top of the screen, and
one button. The text field will initially display the text Tap to Change Color. Every time you
tap the button, you will generate a random color using RGB values, change the text to that
color, and display the values for the color in the following format (assuming you are
displaying a light grey with values 100/100/100): COLOR: 100r, 100g, 100b.
In this case, you start from an "Empty Activity" (not "No Activity", not "Basic Activity") in
the Android Studio new project wizard.
Project ProgColorSwap: Program the entire interface directly in code, not touching XML
files. Your content view (set with Activity.setContentView()) should be a Layout (easiest,
and recommended, would be a LinearLayout) that contains a TextView and button in vertical
arrangement, both horizontally centered. The button will be labeled "Tap me !", and you
should pick a suitable text size (in sp units) that makes the text line cover more than half the
view width:
Note: Only Provide Java Code on paper.
Page 2 of 3
Q No. 3: Marks- 11
Your task is to create an Android app for “Memory Calculator”, Calculator has only two
operation, PLUS(+) and MINUS(-), It will show entered value, operation and result at the
designated places (as in Image), additional feature of the calculator is to maintain history of
last 5 results on the right side of the calculator.
You can make your choice Java, and for minimum API level, you can set "API 21: Android
5.0 (Lollipop)" (or lower if need be).
Thank You
Page 3 of 3