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.

Dealing with Different Hardware

While a lot of focus is placed on screen sizes, there are many other possible hardware differences among different Android devices. For example, some have telephony features, while others do not.

There is a three-phase plan for dealing with these variations:

  1. Filter out devices that cannot possibly run your app successfully, so your app will not appear to them in the Play Store and they will be unable to install your app if obtained by other means
  2. React to varying hardware that you can support, but perhaps might support differently (e.g., choosing a particular flash mode for a device having a camera with a flash)
  3. Cope with device bugs or regressions that impact your application

This chapter will go through each of these topics.


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

Filtering Out Devices

The preview of this section is unavailable right now, but if you leave your name and number at the sound of the tone, it might get back to you (BEEEEEEEEEEEEP!).

Runtime Capability Detection

The preview of this section left for Hollywood to appear in a reality TV show.

Dealing with Device Bugs

The preview of this section was the victim of a MITM ('Martian in the middle') attack.