<uses-library>
English Original: http://developer.android.com/guide/topics/manifest/uses-library-element.html
Acquisition (update) Date: 2014-7-10
Moved from the original blog: http://blog.sina.com.cn/s/blog_48d491300100zmwz.html
Google Play filtering mechanism
Google Play uses the <uses-library> elements declared in the Manifest file to allow devices that cannot meet the requirements of the application to link libraries to install the application. For more information about filtering mechanisms, see the article Google Play filter
-
-
Grammar:
-
-
< uses-library Android:name = "string" android:required />
-
-
Included in:
-
-
<application>
-
-
Description
-
-
Defines the public libraries that the application must link to. This element notifies the system of the library code that needs to be included in the package's class loader.
All android packages (such as,,, and android.app android.content android.view android.widget ) are included in the default library, and all applications are automatically linked. However, some packages (for example maps ) are located in separate libraries, and they are not automatically linked in. See the documentation for the package you are using to determine which library its code is contained in.
This element also affects the installation of applications on certain devices, as well as usability on Google Play:
-
Installation
-
If this element is given and its properties are
android:required set true , PackageManager the system will only allow the application to be installed on the device that provided the library.
android:requiredThe properties are described in detail in subsequent chapters.
-
-
Property:
-
-
-
android:name
-
The name of the library. The name is given in the document of the package being used. For example, "
android.test.runner " is a package that contains the Android test class.
-
android:required
-
A Boolean value that indicates whether the application is required by
android:name the specified library:
The default value is " true ".
Introduced from API level 7.
-
-
Introduced from:
-
-
API Level 1
-
-
See:
-
-
Android Development-api Guide-<uses-library>