Computer science

Assignment 1
This assignment cover the topic from week 1 to week 7
Purpose
To assess your ability to apply the course concepts and critical thinking skills

Action Items
Q1.
(2 Marks)
Explain in details the activity life cycle of an android application with the help of
diagrams.

Q2.

(1 Mark)

What are Adapters in android, explain different adapter views

Q3.

(1 Mark)

Explain the Android location services and the classes required for getting GPS location.

Q4.
(2 Marks)
The following figure shows a part of Android application manifest file.

1. Discuss in details what is meant by part number //1 and //2
2. In the previous figure, what changes are required to do if you made a
new version of your application “1.1”, also a new SDK version 18 is
available.

Q5.
(4 Marks)
In the following activity, complete the following code in order that when a user
press ADD button the sum of the two numbers in (txtnum1, txtnum2) will appear
in (tviewresult).
Hint: to parse String to Float use “Float.parseFloat”

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// add your code here

}

Submission Instructions
Complete and submit this assignment per your professor’s instructions.
Grading Criteria
Accuracy and completion of assignment: 0 – 5 points (10 Marks divided by 2)
https://www.draw.io/

READ ALSO :   Academic help online