Android开发之定义app在手机的安装位置

定义app在手机的安装位置,可以通过在清单文件中添加属性

android:installLocation=""

该属性有三个值:auto(自动),preferExternal(外部优先),internalOnly(手机存储)

该属性的位置

1 <?xml version="1.0" encoding="utf-8"?>
2 <manifest
3     package="com.xxx.xxx"
4     android:installLocation="internalOnly"
5     xmlns:android="http://schemas.android.com/apk/res/android"
6     android:versionCode="1"
7     android:versionName="1.0">
原文地址:https://www.cnblogs.com/liyiran/p/5210203.html