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

**.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代表强制装在内存

更多相关文章

  1. Android手势左右滑动效果
  2. Android官方入门文档[14]停止和重新启动一个Activity活动
  3. android检查网络连接状态的变化,无网络时跳转到设置界面
  4. Dojo mobile TweetView 系列教程之五 —— TweetView: Android,打
  5. Android完全退出应用程序
  6. Android之父安迪·鲁宾:极客文化的代表
  7. Android(安卓)MapView 申请apiKey
  8. Android深入浅出系列课程---Lesson8 Android应用程序启动
  9. 使用air进行移动app开发常见功能和问题(二)

随机推荐

  1. Android的回调机制
  2. ViewPager 使用方法详解
  3. Android操作framebuffer
  4. Android专利地雷曝光 中国粉丝忧虑情绪蔓
  5. 狂刷Android范例之5:ApiDemos主程序框架分
  6. Android中的Margin和Padding及Android支
  7. Android音乐播放器 -- 滑动切换实现
  8. Android香露刀之SeekBar之双管齐下
  9. Android优势劣势
  10. Android设计模式系列(9)--SDK源码之适配