Android Development Slides Lec 08 GCUF
Android Development Slides Lec 08 GCUF
Development
Lecture # 08
M. Javed Iqbal
Components of a Screen
Android applications are
broken down into four main
components:
1.activities
2.services
3.content providers
4.broadcast receivers
Components of a Screen
• Activities
They order the UI and handle
the user interaction to the
smart phone screen.
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. An application has
more than one activity.
Components of a Screen
• Services
They handle background processing
associated with an application.
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.
Components of a Screen
• Broadcast Receivers
They handle communication
between Android OS and
applications.
For example, applications can also
initiate broadcasts to let other
applications know that some data
has been downloaded to the device
and is available for them to use.
Components of a Screen
• Content Providers
They handle data and database
management issues.