Exploring Intent Composition

Another sure way to further understand an intent is to see what an intent object contains. An intent has an action, data (represented by a data URI), a key/value map of extra data elements, and an explicit class name (called a component name). Almost all of these are optional as long as the intent carries at least one of these. We will explore each of these parts in turn.

Image NOTE: When an intent carries a component name with it, it is called an explicit intent. When an intent doesn't carry a component name but relies on other parts such as action and data, it is called an implicit intent. As we go through the rest of ...

Get Pro Android 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.