Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 2. Android application fundamentals > Intents and IntentFilters

2.8. Intents and IntentFilters

One area where Android shines is the flexibility it provides in communicating between components, and sharing data between them. Android makes this possible using Intent- and IntentFilter-based events. As we’ve noted, an Intent is a description of an action you want to happen, and an IntentFilter is a means for a component to declare it’s capable of handling a specific Intent. Intents themselves don’t do any work; rather, they describe something that needs to be done.

If a component wants to perform an action, it declares that intention with an Intent and hands it off to the system. The system then decodes the Intent and decides which other component, Activity, Service, or BroadcastReceiver, can handle the job.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial