您的位置:首页 > 移动开发 > Android开发

android-app manifest(5) - API 23

2015-12-06 14:58 477 查看
>

<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 the
WRITE_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 at
android.Manifest.permission
.

>

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


Platform VersionAPI LevelVERSION_CODENotes
Android 6.023
M
API Changes
Android 5.122
LOLLIPOP_MR1
Platform Highlights
Android 5.021
LOLLIPOP
Android 4.4W20
KITKAT_WATCH
KitKat for Wearables Only
Android 4.419
KITKAT
Platform Highlights
Android 4.318
JELLY_BEAN_MR2
Platform Highlights
Android 4.2, 4.2.217
JELLY_BEAN_MR1
Platform Highlights
Android 4.1, 4.1.116
JELLY_BEAN
Platform Highlights
Android 4.0.3, 4.0.415
ICE_CREAM_SANDWICH_MR1
Platform Highlights
Android 4.0, 4.0.1, 4.0.214
ICE_CREAM_SANDWICH
Android 3.213
HONEYCOMB_MR2
Android 3.1.x12
HONEYCOMB_MR1
Platform Highlights
Android 3.0.x11
HONEYCOMB
Platform Highlights
Android 2.3.4

Android 2.3.3
10
GINGERBREAD_MR1
Platform Highlights
Android 2.3.2

Android 2.3.1

Android 2.3
9
GINGERBREAD
Android 2.2.x8
FROYO
Platform Highlights
Android 2.1.x7
ECLAIR_MR1
Platform Highlights
Android 2.0.16
ECLAIR_0_1
Android 2.05
ECLAIR
Android 1.64
DONUT
Platform Highlights
Android 1.53
CUPCAKE
Platform Highlights
Android 1.12
BASE_1_1
Android 1.01
BASE
》 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".
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: