Android Tutorial

(avery) #1

By : Ketan Bhimani


110 

application requires features available only in later versions of
OpenGL ES, such as 2.0, then you must specify this feature in the
Android manifest file. This is done using the android:glEsVersion
attribute of the <uses-feature> tag. Specify the lowest version of
OpenGL ES that the application requires. If the application works
with 1.0 and 2.0, specify the lowest version (so that the Android
Market allows more users to install your application).

For more information about the <uses-feature> tag of the Android
manifest file, see the Android SDK reference.

Specifying Supported Screen Sizes

Android devices come in many shapes and sizes. Screen sizes and
pixel densities vary widely across the range of Android devices
available on the market today. The Android platform categorizes
screen types in terms of sizes (small, normal, and large) and pixel
density (low, medium, and high).These characteristics effectively
cover the variety of screen types available within the Android
platform.

An application can provide custom resources for specific screen
sizes and pixel densities (we cover this in Chapter “Managing
Application Resources”).The <supportsscreen> tag can be used to
specify which Android types of screens the application supports.

For example, if the application supports QVGA screens (small) and
HVGA screens (normal) regardless of pixel density, the <supports-
screen> tag is configured as follows:

<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens"false"
android:anyDensity="true"/>

Free download pdf