Attributes

android:glEsVersion

The GLES version needed by the application. The higher 16 bits represent the major number and the lower 16 bits represent the minor number. For example, for GL 1.2 referring to 0x00000102, the actual value should be set as 0x00010002.

android:name

The name of a feature required by the application. The value must be one of the following accepted strings:

Feature

Value

Description

Camera

"android.hardware.camera"

The application requires a camera.

"android.hardware.camera.autofocus"

The application requires a camera with auto-focus capability. As a prerequisite,

"android.hardware.camera" must also be declared with a separate <uses-feature> element.

Note: Any application that requests the CAMERA permission but does not declare any camera features with the <uses-feature> element will be assumed to use all camera features (such as auto-focus). Thus, the application will not be compatible with devices that do not support all features. Please use <uses-feature> to declare only the camera features that your application needs.

If you declare "android.hardware.camera", then your application is considered compatible with all devices that include a camera, regardless of whether auto-focus is available or not. If you also use the auto-focus features (available through the Camera API), then you need to include an additional <uses-feature> element that declares the "android.hardware.camera.autofocus" feature. Also note that you must still request the CAMERA permission. Requesting permission grants your application access to the appropriate hardware and software, while declaring the features used by your application ensures proper device compatibility.

Although the <uses-feature> element is only activated for devices running API Level 4 or higher, it is safe to include this for applications that declare a minSdkVersion of "3" or lower. Devices running older versions of the platform will simply ignore this element, but newer devices will recognize it and enforce installation restrictions based on whether the device supports the feature.

INTRODUCED IN: API Level 4 SEE ALSO: Configurationlnfo

0 0

Post a comment