Role: Make the application more compatible, indicate the minimum API required by the application, compile the API, and the most supported APIs. Values are integers
<android:minsdkversion= "integer" android:targetsdkversion= "Integer" android:maxsdkversion= "integer"/>
android:minsdkversion Specifies the minimum API level required to run the application. If the system's application's interface is lower than the value specified in this property, the user will be prevented from installing the application. If you do not declare this property, the system defaults to "1", which indicates that your application is compatible with all versions of the Android system.
android:targetsdkversion --an integer representing the target API level of the application. If not set, the default value equals the given example. This property notifies the system that you have tested the target version and that the system should not allow any compatible behavior to keep your application forward compatible.
android:maxsdkversion --If the application's Maxsdkversion property is lower than the API level used by the system itself, the application will not be allowed to be installed. Effectively remove your application from the device in case of re-authentication after system update. Therefore, it is not recommended to declare this property.
<uses-configuration>
< uses-configuration android:reqfivewaynav =["true" | "false"] requires five-direction navigation "up/down/left/right/current" Android:reqhardkeyboard =["true" | "false"] requires hardware keyboard android:reqkeyboardtype =["undefined"
| "Nokeys" | "QWERTY" | "Twelvekey"] sets the type of keyboard android:reqnavigation
=["undefined"
| "Nonav" | "Dpad" | "Trackball" | "Wheel"] sets the type of navigation android:reqtouchscreen
=["undefined"
| "Notouch" | "Stylus" | "Finger"]
/> set the type of touch screen
Android Market filters out all apps not supported by the device based on the app-defined uses-feature.
By using the <uses-feature> element, an app can specify the hardware models it supports. For example, some devices do not support Multitouch or OpenGL ES 2.0, so filters will filter applications that require these hardware support (multitouch or OpenGL ES 2.0), and users will not see these apps on Android Market.
<android:name= "string" android:required| "false"] android:glesversion= "integer"/>
The Name property specifies the characteristics of the app, and the Required property tells the filter whether we need support for this device in any case, or just "nice to have".
The last attribute is optional and is used only when you need to specify an OpenGL ES version.
For example: We can use the <uses-feature> element to reject all devices that do not support multitouch, as follows:
<uses-feature android:name= "Android.hardware.touchscreen.multitouch" android:required= "true"/>
For example: If your game requires more powerful graphics processing, we can specify OpenGL ES 2.0, and then our game will only be seen by devices that support OpenGL ES 2.0.
<uses-feature android:glesversion= "0x00020000" required= "true"/>
<supports-screens>
<Supports-screensandroid:resizeable=["true" |"false"] Android:smallscreens=["true"| "false"] Android:normalscreens=["true"| "false"] Android:largescreens=["true"| "false"] Android:xlargescreens=["true"| "false"] android:anydensity=["true"| "false"] ANDROID:REQUIRESSMALLESTWIDTHDP= "integer"ANDROID:COMPATIBLEWIDTHLIMITDP= "integer"ANDROID:LARGESTWIDTHLIMITDP= "integer"/>
This element is used to specify the screen size supported by the application and to enable screen compatibility mode for larger screens than those supported by the application
<compatible-screens>
<compatible-screens> <screen android:screensize=["small" | "Normal" | "Large" | "XLarge"] android:screendensity=["ldpi" | "MDPI" | "HDPI" | "xhdpi"]/> ...</compatible-screens>
This element is used to specify that the screen configuration is compatible with the application. Only one instance of the <compatible-screent> element is allowed in the app's manifest, but it can contain multiple <screen> elements. Each <screen> element specifies a specific size---density combination that is compatible with the application. The Android system does not read the <compatible-screen> list elements (either during installation or when it is running). This element's information can only be used by external services (such as Google Play), so that it can better understand the compatibility of the application with the specified screen configuration.
<supports-gl-texture>
<supports-gl-texture android:name= "string"/>
Declares a GL texture compression format supported by this application. The so-called application "support" of the GL texture compression format, refers to the application installed on a device can provide texture data compressed in this format. The application can .apk provide local compressed data by the file, or it can download data from the server at run time.
Each < supports-gl-texture > element can only declare one supported texture compression format, which android:name is specified by the property value. If your application supports multiple texture compression formats, you can declare multiple < supports-gl-texture > elements. For example:
< supports-gl-texture android:name= "Gl_oes_compressed_etc1_rgb8_texture"/>
< supports-gl-texture android:name= "Gl_oes_compressed_paletted_texture"/>
| Texture compression Format Descriptor |
Description |
GL_OES_compressed_ETC1_RGB8_texture |
Ericsson texture compression. Defined in OpenGL ES 2.0 for all Android platform devices that support OpenGL ES 2.0. |
GL_OES_compressed_paletted_texture |
Universal texture compression with palette. |
GL_AMD_compressed_3DC_texture |
ATI 3Dc Texture compression. |
GL_AMD_compressed_ATC_texture |
ATI texture compression. For devices running the Adreno GPU, including HTC Nexus One, Droid incredible, EVO, and more. To ensure maximum compatibility, the device can also GL_ATI_texture_compression_atitc declare elements with descriptors < supports-gl-texture > . |
GL_EXT_texture_compression_latc |
Luminance Alpha Texture compression. |
GL_EXT_texture_compression_dxt1 |
S3 DXT1 Texture compression. Devices for the Nvidia TEGRA2 platform, including the Motorala Xoom, Motorola Atrix, Droid Bionic, and more. |
GL_EXT_texture_compression_s3tc |
S3 texture compression, but DXT variants are not supported. Devices for the Nvidia TEGRA2 platform, including the Motorala Xoom, Motorola Atrix, Droid Bionic, and more. If your application requires a DXT variant, use the previous descriptor to declare it. |
GL_IMG_texture_compression_pvrtc |
PowerVR texture compression. For devices with PowerVR sgx530/540 GPUs, such as the Motorola DROID series, Samsung Galaxy S, Nexus S and Galaxy Tab, and more. |
<instrumentation>
< instrumentation android:functionaltest =["true" | "false"] android:handleprofiling =["true" | "false"] Android:icon = "drawable resource" Android:label = "string resource" Android:name = "string" = "string" />< /span>
Declares a Instrumentation class that monitors the interaction between an application and the system. The instrumentation object will be instantiated before all application components.
Property:
-
-
android:functionalTest
-
-
whether the instrumentation class will run as a functional test-"
true " means yes, " false " indicates no. The default value is " false ".
-
-
android:handleProfiling
-
-
whether the instrumentation object can turn performance analysis on and off (profiling)-"
true " means it can decide when to start and stop at its own discretion, "" means that the false entire runtime will continue to open. Set to " true " allows the instrumentation object to perform profiling only for certain operations. The default value is " false ".
-
-
android:icon
-
-
represents the icon for the instrumentation class. This property must be set to drawable resource.
-
-
android:label
-
A
-
text label representing the instrumentation class for the user to read. Can be set directly to a string, or to a reference to a string resource.
-
-
android:name
-
-
Instrumentation The name of the child class. The class name should be set to the fully qualified format (for example, " com.example.project.StringInstrumentation "). However, for short, if the first character of the class name is a period, the < manifest > package name set in the element is automatically added to the front. the class name must be specified without a default value.
-
-
android:targetPackage
-
-
run the application that corresponds to the instrumentation object. The application is specified by the
< manifest > package name set by the element in its Manifest file.
Androidmanifest.xml-"manifest and other minor configurations"