4.6. AndroidManifest.xml

In Section 3.6, you made two changes to the AndroidManifest.xml file:

• The first indicated that the Tip Calculator app supported only portrait orientation.

• The second forced the soft keyboard to be displayed when the app started executing so that the user could immediately enter a bill amount in the Tip Calculator app.

This app supports both portrait and landscape orientations. No changes are required to indicate this, because all apps support both orientations by default.

In this app, most users will launch this app so that they can perform one of their saved searches. When the first GUI component in the GUI is an EditText, Android gives that component the focus when the app loads. As you know, when an EditText

Get Android™ How to Program, Second Edition 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.