定义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">

 

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2022-01-15
  • 2021-12-12
  • 2021-10-15
  • 2022-01-31
  • 2021-10-23
猜你喜欢
  • 2021-08-31
  • 2022-02-22
  • 2022-12-23
  • 2022-01-17
  • 2021-10-12
  • 2022-02-20
  • 2021-04-19
相关资源
相似解决方案