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
  • PrintPrint
Share this Page URL
Help

Chapter 21: Creating Intent Filters > Intents for Every Occasion

Intents for Every Occasion

The number of actions encompassed by the Intent class steadily grows with each new version of Android. With the release of Ice Cream Sandwich (ICS), version 4.0, Google has added a further six actions and deprecated three that are no longer required. The Android SDK documentation covers all 97 intent actions available in ICS, which you can read at your leisure. Here are some highlights to get you thinking about the possibilities:

  • ACTION_AIRPLANE_MODE_CHANGED: The device has entered or exited airplane mode.
  • ACTION_CAMERA_BUTTON: The camera button was pressed.
  • ACTION_DATE_CHANGED: The date has changed. This could be important for applications like reminder lists, calendars, and so forth.
  • ACTION_HEADSET_PLUG: Headphones were attached or removed. This is quite important for music-playing apps and similar apps.

  

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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint