Android Component

Android Main Component
App components are the essential building blocks of an Android app. Each component is an entry point through which a user can enter your application. Some components depend on others components.
There are Mainly four different types of app components:
1- Activity
2- Services
3- Content Provider
4- Broadcast Receiver

Intent
Although intents provide facility to communication between components in several ways, there are three fundamental use cases:

1- Starting a Activity
2- Start a Service
3- Delivering a Broadcast

Intent Types
There are two types of intents
1-Implicit Intents 
Its not start an any specific component.But its allow a component from another app to handle its.
like that- if you want to show Gallery,Dial Pad,Web Browser to user. Using your application so there
implicit intents use.
2-Explicit Intents
If you want to move from one activity to another activity. Fully-qualified component class name.
You'll typically use an explicit intent to start a component in your own app, because you know the class name of the activity or service you want to start.




Comments