Android:应用程序转移到USB存储器(SD卡)
16lz
2021-01-23
通过设定-->应用程序查看,有些应用程序会出现“应用程序转移到USB存储器”的按钮,这是怎么做到的呢?
只要配置一下androidmanifest.xml即可:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.andy.androidtest" android:installLocation="auto" android:versionCode="1" android:versionName="1.0" >
将android:installLocation设置为“auto"即可。
如果需要将程序默认安装到外部存储器,则设置为"preferExternal"
更多详情请参考官方文档:
http://developer.android.com/guide/topics/data/install-location.html
更多相关文章
- Android应用程序安装过程浅析
- Android应用程序键盘(Keyboard)消息处理机制分析(27)
- Android应用程序键盘(Keyboard)消息处理机制分析(17)
- android 根据文件的扩展名选择用什么应用程序打开
- Android应用程序 启动画面
- Android Activity管理类,用于Activity管理和应用程序退出
- android中得到所有安装的应用程序及区分其是否为系统应用程序还