android-app manifest(5) - API 23

来源:互联网 发布:大连开发区知润山房照 编辑:程序博客网 时间:2024/06/05 07:56

<uses-library  android:name="string"  android:required=["true" | "false"] />

》 

<uses-permission android:name="string"        android:maxSdkVersion="integer" />

However, the permission is required for API level 18 and lower. So you can declare that this permission is needed only up to API level 18 with a declaration such as this:

<uses-permission     android:name="android.permission.WRITE_EXTERNAL_STORAGE"     android:maxSdkVersion="18" />

This way, beginning with API level 19, the system will no longer grant your app theWRITE_EXTERNAL_STORAGE permission.

This attribute was added in API level 19.

>

<uses-permission-sdk-23 android:name="string"        android:maxSdkVersion="integer" />

Specifies that an app wants a particular permission, but only if the app is running on a device with SDK version 23 or higher. If the device is running SDK version 22 or lower, the app does not have the specified permission.

For more information on permissions, see the Permissions section in the introduction and the separateSystem Permissions API guide. A list of permissions defined by the base platform is available atandroid.Manifest.permission.

<uses-sdk android:minSdkVersion="integer"          android:targetSdkVersion="integer"          android:maxSdkVersion="integer" />

Platform VersionAPI LevelVERSION_CODENotesAndroid 6.023MAPI ChangesAndroid 5.122LOLLIPOP_MR1Platform HighlightsAndroid 5.021LOLLIPOPAndroid 4.4W20KITKAT_WATCHKitKat for Wearables OnlyAndroid 4.419KITKATPlatform HighlightsAndroid 4.318JELLY_BEAN_MR2Platform HighlightsAndroid 4.2, 4.2.217JELLY_BEAN_MR1Platform HighlightsAndroid 4.1, 4.1.116JELLY_BEANPlatform HighlightsAndroid 4.0.3, 4.0.415ICE_CREAM_SANDWICH_MR1Platform HighlightsAndroid 4.0, 4.0.1, 4.0.214ICE_CREAM_SANDWICHAndroid 3.213HONEYCOMB_MR2 Android 3.1.x12HONEYCOMB_MR1Platform HighlightsAndroid 3.0.x11HONEYCOMBPlatform HighlightsAndroid 2.3.4
Android 2.3.310GINGERBREAD_MR1Platform HighlightsAndroid 2.3.2
Android 2.3.1
Android 2.39GINGERBREADAndroid 2.2.x8FROYOPlatform HighlightsAndroid 2.1.x7ECLAIR_MR1Platform HighlightsAndroid 2.0.16ECLAIR_0_1Android 2.05ECLAIRAndroid 1.64DONUTPlatform HighlightsAndroid 1.53CUPCAKEPlatform HighlightsAndroid 1.12BASE_1_1 Android 1.01BASE》 For example, the android.appwidget package was introduced with API Level 3. If an application uses that API, it must declare a android:minSdkVersion attribute with a value of "3".

0 0
原创粉丝点击