Chapter 6

Enhancing Your First Project

The AndroidManifest.xml file that Android generated for your first project gets the job done. However, for a production application, you may wish to consider adding a few attributes and elements, such as those described in this chapter.

Supporting Multiple Screen Sizes

Android devices come with a wide range of screen sizes, from 2.8-inch tiny smartphones to 46-inch Google TVs. Android divides these into four categories, based on physical screen size and the distance at which they are usually viewed:

  • Small: Under 3 inches (7.5 cm), at least 426×320dp resolution
  • Normal: 3 inches (7.5 cm) to around 4.5 inches (11.5 cm), at least 470×320dp resolution
  • Large: 4.5 inches (11.5 cm) to around 10 inches (25 cm), ...

Get Beginning Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.