Cit 3350 Mobile Application Development
Cit 3350 Mobile Application Development
INSTRUCTIONS:
Answer question one and any other two questions
a. State and briefly describe FIVE methods used to describe the fragment life cycle in
android application development. (6 marks)
a. With the help of a diagram, describe the four layers of the android software architecture.
(6 marks)
b. What is information hiding and how is it implemented? (4 Marks)
c. Describe the following layouts in the context user interface of a mobile application.
draw a diagram for each case to demonstrate your understand. (4 Marks)
i) Relative Layout
ii) Frame layout
d. Briefly describe four functions of a manifest XML file in mobile programming.
(6 Marks)
a. State and explain any two selection controls that are used to implement user interface of a
mobile application. Write a sample code to demonstrate their implements. (5 Marks)
b. Using the SMS API write the code for MainActivity.java for composing a new SMS
(5 Marks)
c. Using an android code example, how to launch an activity in android (5 Marks)
d. Write android code to demonstrate how you pass the data to sub-activities (5 Marks)
a. Describe the six steps of the mobile application development process. (6 marks)
i. Explain the meaning of the following lines of code in the context of mobile
programming. (6 Marks)
public class Lab2 extends Activity
{
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
TextView view = new TextView(this);
view.setText(“Fresher’s Night is on Friday 11th March 2022 \n");
setContentView(view);
}
}
b. Write android Strings File (strings.xml) that would display your name on the screen
(4 Marks)
c. Write android Layout File (activity_main.xml) that would display your name on the
screen (4 Marks)