Intents are asynchronous messages which allow application
components to request functionality from other Android components.
Intents allow you to interact with components from the same applications
as well as with components contributed by other applications.
For example, an activity can start an external activity for taking a
picture.
Intents are objects of the
android.content.Intent
type.
Your code can send them to the Android system defining the components you are targeting.
For example, via the startActivity()
method you can define that the intent should be used to start an activity.
An intent can contain data via a
Bundle
.
This data can be used by the receiving component.
In Android the reuse of other application components is a concept known as task.
An application can access other Android components to achieve a task.
For example, from a component of your application you can trigger
another component in the Android system, which manages photos, even if
this component is not part of your application.
In this component you select a photo and return to your application to
use the selected photo.
No comments:
Post a Comment