4. Activity
The Activity is the basic building block of every
visible Android application. Every screen in an
application is an activity by itself. They work
together to present an application sequence,
each activity is an independent entity. Activities
typically involve an interaction with a user.
4
5. Intent
Intent is used to invoke components. It is mainly
used to:
Start the service
Launch an activity
Display a web page
Display a list of contacts
Broadcast a message
Dial a phone call etc.
5
6. Services
Service is a background process that can run for
a long time.
There are two types of services local and
remote. Local service is accessed from within
the application whereas remote service is
accessed remotely from other applications
running on the same device.
6
7. Broadcast Receiver
The Broadcast Receiver is yet another type of
component that can receive and respond to
any broadcast announcements. In particular,
it is used to listen for Intents.
7
8. Content Provider
The Content Providers are components that
expose a specific set of data to applications.
They provide the tools to manage access and
define security for the data.
If data is only going to be used in your
application, then a content provider is
unnecessary. It is only needed to communicate
and share that data outside the application.
8
9. Additional Components
Views : UI elements that are drawn on-screen
including buttons, list forms etc.
Layouts : View hierarchies that control screen
format and appearance of the views.
Manifest : Configuration file for the application
9
10. Notifications
Android allows to put notification into the title bar
of your application. The user can expand the
notification bar and by selecting the notification
the user can trigger another activity.
Types of Notifications:
1. Toast Notifications
2. Status Bar Notifications
3. Dialog Notifications
10
11. Resources
Android supports that resources like images and
certain XML configuration files, can be kept
separate from the source code.
Resource files must be placed in the /res directory
in a predefined sub-folder dependent on their
type.
11