欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

如何把应用安装到sd卡中

程序员文章站 2022-05-23 09:06:11
...
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.yfz"
      android:installLocation="auto"
      android:versionCode="1"
      android:versionName="1.0">
这个属性设置的是默认安装位置, 共有三个有效值,auto、internalOnly、preferExternal。

auto 表示自动,由系统决定安装位置


internalOnly 安装在手机内存

preferExternal 安装在外部存储中