Module 3: Android Application Components: Gordon College
Module 3: Android Application Components: Gordon College
City of Olongapo
-o0o-
GORDON COLLEGE
Olongapo City Sports Complex, Donor St., East Tapinac, Olongapo City 2200
www.gordoncollege.edu.ph
In Module 3, we will give a formal definition on the term Android application, its
fundamental building blocks, and how they work within our devices.
IT Elective II (Lec) NOT FOR SALE, Exclusive for Gordon College Only!
Neil Marc R. Biron, Instructor (1st Semester, AY 2020-2021) | 1 of 6
Republic of the Philippines
City of Olongapo
-o0o-
GORDON COLLEGE
Olongapo City Sports Complex, Donor St., East Tapinac, Olongapo City 2200
www.gordoncollege.edu.ph
C. Activities
An activity represents a single screen with a user interface,in-short Activity
performs actions on the screen. For example, an email application might have
one activity that shows a list of new emails, another activity to compose an
email, and another activity for reading emails. If an application has more than
one activity, then one of them should be marked as the activity that is presented
when the application is launched.
In android, Activity represents a single screen with a user interface (UI) and it
will acts an entry point for the user’s to interact with app.
For example, a contacts app that is having multiple activities like showing a list
of contacts, add a new contact, and another activity to search for the contacts.
All these activities in the contact app are independent of each other but will
work together to provide a better user experience.
D. Services
A service is a component that runs in the background to perform long-running
operations. For example, a service might play music in the background while the
user is in a different application, or it might fetch data over the network without
blocking user interaction with an activity.
E. Broadcast Receivers
In android, Broadcast Receiver is a component that will allow a system to deliver
events to the app like sending a low battery message to the app. The apps can
also initiate broadcasts to let other apps know that required data available in a
device to use it.
IT Elective II (Lec) NOT FOR SALE, Exclusive for Gordon College Only!
Neil Marc R. Biron, Instructor (1st Semester, AY 2020-2021) | 2 of 6
Republic of the Philippines
City of Olongapo
-o0o-
GORDON COLLEGE
Olongapo City Sports Complex, Donor St., East Tapinac, Olongapo City 2200
www.gordoncollege.edu.ph
F. Content Providers
In android, Content Providers are useful to exchange the data between the apps
based on the requests. The Content Providers can share the app data that stores
in the file system, SQLite database, on the web or any other storage location that
our app can access.
By using Content Providers, other apps can query or modify the data of our app
based on the permissions provided by content provider. For example, android
provides a Content Provider (ContactsContract.Data) to manage contacts
information, by using proper permissions any app can query the content
provider to perform read and write operations on contacts information.
IT Elective II (Lec) NOT FOR SALE, Exclusive for Gordon College Only!
Neil Marc R. Biron, Instructor (1st Semester, AY 2020-2021) | 3 of 6
Republic of the Philippines
City of Olongapo
-o0o-
GORDON COLLEGE
Olongapo City Sports Complex, Donor St., East Tapinac, Olongapo City 2200
www.gordoncollege.edu.ph
1 Fragments
Represents a portion of user interface in an Activity.
Views
2
UI elements that are drawn on-screen including buttons, lists forms etc.
Layouts
3
View hierarchies that control screen format and appearance of the views.
Intents
4
Messages wiring components together.
Resources
5
External elements, such as strings, constants and drawable pictures.
Manifest
6
Configuration file for the application.
H. Summary
Module 3 entitled Android Application Components gives a head start about the
different important elements that the student must identified in order to
understand how Android application works.
For example, user interface and interaction between the user and the device can
be established with the used of Activity. Submitting one value from one activity
to another can be accomplished using Intent.
This understanding will help the students for better designing and implementing
functionalities on their respective Android application.
IT Elective II (Lec) NOT FOR SALE, Exclusive for Gordon College Only!
Neil Marc R. Biron, Instructor (1st Semester, AY 2020-2021) | 4 of 6
Republic of the Philippines
City of Olongapo
-o0o-
GORDON COLLEGE
Olongapo City Sports Complex, Donor St., East Tapinac, Olongapo City 2200
www.gordoncollege.edu.ph
V. LEARNING TASK
Holistic Rubric
Exceeding Meeting Approaching Below None
(10) (8) (6) (2) (0)
Substantial,
Content Clarity
specific, and/or
The presence of ideas Sufficient
illustrative
developed through developed Limited content Superficial
content No content
facts, examples, content with with inadequate and/or
demonstrating or answer
illustrations, details, adequate elaboration or minimal
strong provided.
opinions, statistics, elaboration or explanation content
development and
reasons, and/or explanation.
sophisticated
explanations.
ideas.
1. What are the commands that you can use in creating and loading an Activity
within your Android application?
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
2. What types of values can we store and share using Intent? How do we save these
values from the source? How do we pass it to its destination activity or
application?
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
3. What do you think is the best layout that you can use in creating an Android
application? Explain why and make a comparison from other layouts available
in Android Studio.
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
Score Sheet
Question 1 Question 2 Question 3 Total Score
IT Elective II (Lec) NOT FOR SALE, Exclusive for Gordon College Only!
Neil Marc R. Biron, Instructor (1st Semester, AY 2020-2021) | 5 of 6
Republic of the Philippines
City of Olongapo
-o0o-
GORDON COLLEGE
Olongapo City Sports Complex, Donor St., East Tapinac, Olongapo City 2200
www.gordoncollege.edu.ph
VI. REFERENCES
Online Resources
• https://www.tutorialspoint.com/android/android_application_components.
htm
• https://www.javatpoint.com/android-core-building-
blocks#:~:text=The%20core%20building%20blocks%20or,xml.
• https://www.tutlane.com/tutorial/android/android-application-
components-activities-intents-views-layouts-services
• https://developer.android.com/guide/components/fundamentals
IT Elective II (Lec) NOT FOR SALE, Exclusive for Gordon College Only!
Neil Marc R. Biron, Instructor (1st Semester, AY 2020-2021) | 6 of 6