You are on page 1of 7

Page |1

INFORMATION TECHNOLOGY AND INFORMATION SYSTEM


DEPARTMENT

MOBILE DEVELOPMENT

EXERCISE

6
STATIC LOGIN ACCOUNT

NAME SECTION

DATE PERFORMED DATE FINISHED

GJPRosales
Page |2

I. OBJECTIVES

At the end of this exercise, students must be able to:


a) Design different modal dialogs
b) Design an Android application with dialog messages
c) Apply xml layout design for a given dialogs
d) Apply data input from a dialog to be process
e) Construct an xml layout for the dialog
f) Construct a class that will render and pass data from a dialog

II. BACKGROUND INFORMATION

In order to accomplish this exercise, the student must have a clear understanding
of the following topics:
• xml layout for dialog
• How to customized dialogs
• Application of Inner Class for dialogs
• Dialog Fragment

III. EXPERIMENTAL PROCEDURE

Overview

This programming exercise demonstrates the use of android dialogs that


add flavors in android development without creating new activities.

TASK 1.

1. Create a new Android Project name it as AndroidAppFour

2. Design the main activity layout:

a. Add the following statement in your strings.xml from res/values/ folder

GJPRosales
Page |3

b. Add a button in the action_main layout and set the id to btnShowLogin

3. Create the customized layout for the dialog


a. Create a new xml layout under res/layout folder and name it
layout_login.xml

b. Write the code for layout_login as shown below. You can upload your
icon here in the drawable folder.

GJPRosales
Page |4

4. Write the java codes for the program

a. Create a context that will hold the main context of the program

b. write the inner class defining the dialog fragment of the program as
shown below.

GJPRosales
Page |5

c. write the method that will show the dialog fragment

TASK 2. OUTPUT
1. Using any screen recording applications. Navigate your application by showing
provided screenshots below:

GJPRosales
Page |6

IV. QUESTION AND ANSWER

1. Briefly discuss the function of a fragment. How can we implement a


fragment in our application?

2. What other dialogs we can use in our applications? What is the best
scenario to use that dialog?

V. REFERENCES

GJPRosales
Page |7

www.developer.android.com

VI. RUBRICS

Program (50 (Excellent) (Good) (Fair) (Poor)


pts)
Program Program Program Program Program does
execution executes executes with executes with not execute (10
(20pts) correctly with less than 3 more than 3 – 11)
no syntax or errors (15 – errors (12 –
runtime errors 17 ) 14)
(18 – 20)
Correct output Program Output has Output has Output is
(20pts) displays minor errors multiple errors incorrect (10 -
correct output (15 – 17) (12 – 14 ) 11)
with no errors
(18 – 20)
Design of output Program Program Program does Output is poorly
(10pts) displays more displays not display the designed (5)
than expected minimally required output
(10) expected (6-7)
output (8 – 9)
Design of logic Program is Program has Program has Program is
(20pts) logically well slight logic significant logic incorrect (10 -
designed (18 – errors that do errors (12 – 11)
20) no significantly 14 )
affect the
results (15 –
17)
Standards Program is Few Several Program is
(20pts) stylistically well inappropriate inappropriate poorly written
designed (18 – design choices design choices (10 - 11)
20) (i.e. poor (i.e. poor
variable variable
names, names,
improper improper
indentation) (15 indentation) (12
– 17) – 14 )
Delivery The program The program The code was The code was
(10pts) was delivered was delivered within 2 weeks more than 2
on time. (10) within a week of the due date. weeks overdue
of the due date. (6 – 7) (5)
(8 – 9)

GJPRosales

You might also like