Wednesday, 15 July 2015

Basics of Android Part - 1

Today I am going to discuss about components of android and life cycle of android activity.

Android Components:

Android have basic four components.

i) Activity
ii) Services
iii) Broadcast Receiver
iv) Content Providers.

Activity:
An Activity is very important component in android because any action is perform on the screen
is called an Activity. Using activity user can create multiple interface like splash screen, Login form,
Registration form, Email Sending Activity, Broadcast message and so on. When we launch android application then first called Activity.

Services:
Services are useful for run long time operation as a background process which are not visible infornt
of users. For Example: Users can play music in background while they are working with another application.

Broadcast Receiver:
Broadcast Receivers simply respond to broadcast messages from other applications or from the system.
For Example: Battery is law, Download Successfully and so on.

Content Providers:
A content provider component supplies data from one application to others on request.
Such requests are handled by the methods of the ContentResolver class. The data may be stored in the file system, the database or somewhere else entirely.

Life Cycle of Android Activity:

No comments:

Post a Comment