读书人

Android 运用安装设置

发布时间: 2012-09-19 13:43:54 作者: rapoo

Android 应用安装设置
应用程序的默认安装位置以及是否可移动取决于该程序的开发者的配置

**.apk的AndroidManifest.xml 中

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

android:versionCode="1"
android:installLocation="auto"
android:versionName="1.0">

android:installLocation 的值有三个 internalOnly ,auto,preferExternal

android:installLocation 值为internalOnly 或不存在时,该应用程序不允许移动到SD 卡中。

android:installLocation 值为auto,preferExternal 时,允许应用程序在 SD卡与内存中相互移动



adb shell 中可以使用 pm setInstallLocation 2 命令更改安装位置。2代表的是强制安装在sd,0代表自动,1代表强制装在内存

读书人网 >Android

热点推荐