The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.

PackageManager Tricks

PackageManager is your primary means of introspection at the component level, to determine what else is installed on the device and what components they export (activities, etc.). As such, there are many ways you can use PackageManager to determine if something you want is possible or not, so you can modify your behavior accordingly (e.g., disable action bar items that are not possible).

This chapter will outline some ways you can use PackageManager to find out what components are available to you on a device.


Understanding this chapter requires that you have read the core chapters of this book.

Asking Around

The preview of this section is in the process of being translated from its native Klingon.

Preferred Activities

The preview of this section is off trying to sweet-talk the Khaleesi into providing us with a dragon.

Middle Management

The preview of this section was whisked away by a shark-infested tornado.