`

安装到SD卡

 
阅读更多

AndroidManifest.xml 中

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"

 android:installLocation 有三个值可选

internalOnly 选择internalOnly是指必须安装到内部才能运行

auto 系统将会根据存储空间自己去适应

preferExternal 选择preferExternal,系统会优先考虑将APK安装到SD卡上(当然最终用户可以选择为内部ROM存储上,如果SD存储已满,也会安装到内部存储上)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics