android-app manifest(5) - API 23
2015-12-06 14:58
477 查看
>
》
》
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:
This way, beginning with API level 19, the system will no longer grant your app the
This attribute was added in API level 19.
>
> 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
>
was introduced with API Level 3. If an application uses that API, it must declare a
<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_STORAGEpermission.
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" />
android.appwidgetpackage
was introduced with API Level 3. If an application uses that API, it must declare a
android:minSdkVersionattribute with a value of "3".
相关文章推荐
- Android中自动连接到指定SSID的Wi-Fi
- android横竖屏切换和布局的问题
- android横竖屏切换和布局的问题
- Android数据存储五种方式总结
- Android人脸识别——眼睛是窗口
- Android Rild 概述
- Android 操作系统的内存回收机制
- Android:Theme总结--小白总结
- Android AutoLayout全新的适配方式
- android典型代码系列(三十)------DES加密算法
- android中英文混排
- android典型代码系列(二十八)------通话记录的操作
- android典型代码系列(二十七)------锁屏打开浏览器传数据,解屏最小化浏览器
- android典型代码系列(二十六)------App widget的使用
- android典型代码系列(二十五)------popupwindow的使用
- android典型代码系列(二十四)------获取某个应用程序所占用的内存
- android典型代码系列(二十二)------按键使上面的EditText抖动
- Android设置Settings:PreferenceFragment(2)
- android数据存储方式(一)
- Android Studio下载地址