0% found this document useful (0 votes)
813 views3 pages

Final Term Paper Mobile Application Development - Theory

This document provides instructions for 3 questions on a Mobile Application Development exam. Question 1 asks students to create an Android app using Google Maps to display the current device location. It requires writing Java code and adding permissions to the manifest. Question 2 asks students to create an Android UI with a text field and button, where tapping the button generates a random color and updates the text field. Question 3 asks students to create a memory calculator Android app with addition and subtraction functions that displays entered values, operations, results and maintains a history of the last 5 results. Students are to provide Java code for the questions on paper.

Uploaded by

Umair Aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
813 views3 pages

Final Term Paper Mobile Application Development - Theory

This document provides instructions for 3 questions on a Mobile Application Development exam. Question 1 asks students to create an Android app using Google Maps to display the current device location. It requires writing Java code and adding permissions to the manifest. Question 2 asks students to create an Android UI with a text field and button, where tapping the button generates a random color and updates the text field. Question 3 asks students to create a memory calculator Android app with addition and subtraction functions that displays entered values, operations, results and maintains a history of the last 5 results. Students are to provide Java code for the questions on paper.

Uploaded by

Umair Aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

FOUNDATION UNIVERSITY ISLAMABAD

RAWALPINDI CAMPUS
Final Term Examinations Theory (Spring-2020)

Programme: BCSE/BSCS Semester: 8th

Course Title: Mobile Application Development CSC 491 Section: BCSE


A,B,C and BSCS 8

Instructor Name: Muhammad Asif/ Muhammad Humair Noor Max Marks: 35

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.

Here is the approach to implement:

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

You might also like