Android Tutorial

(avery) #1
Android Tutorial 103

Setting the Application Name and Icon

Overall application settings are configured with the <application>
tag of the Android manifest file. Here you set information such as
the application icon (android:icon) and friendly name
(android:label).These settings are attributes of the <application>
tag.

For example, here we set the application icon to a drawable
resource provided with the application package and the application
label to a string resource:

<application android:icon="@drawable/icon"
android:label="@string/app_name">


You can also set optional application settings as attributes in the
<application> tag, such as the application description
(android:description) and the setting to enable the application for
debugging on the device (android:debuggable="true").

Enforcing Application System Requirements

In addition to configuring your application’s identity, the Android
manifest file is also used to specify any system requirements
necessary for the application to run properly. For example, an
augmented reality application might require that the handset have
GPS, a compass, and a camera. Similarly, an application that relies
upon the Bluetooth APIs available within the Android SDK requires
a handset with an SDK version of API Level 5 or higher (Android
2.0).These types of system requirements can be defined and
enforced in the Android manifest file.Then, when an application is
Free download pdf