[英]Installing apps into sd-card(External storage)
I was trying to set my default install location of android apps into my sd-card(external storage).So i tried these commands, 我试图将我的Android应用程序的默认安装位置设置到我的SD卡(外部存储器)。所以我尝试了这些命令,
adb shell pm getInstallLocation (this shows 0[auto]) adb shell pm getInstallLocation(显示0 [auto])
so i run this command to make it sd-card 所以我运行此命令使其成为SD卡
adb shell pm setInstallLocation 2 adb shell pm setInstallLocation 2
again i run this to see if the command ran successfully or not. 我再次运行此命令以查看命令是否成功运行。
adb shell pm getInstallLocation (this shows 2[external) adb shell pm getInstallLocation(这显示2 [外部]
But after all these still my apps are getting installing into internal memory and i am getting low memory space issue in my phone.Any help will be appreciated. 但毕竟这些仍然是我的应用程序正在安装到内部存储器,我的手机内存空间问题。任何帮助将不胜感激。
did you tried with installLocation="PreferredExternal" options in your manifest.xml file ? 你尝试过manifest.xml文件中的installLocation =“PreferredExternal”选项吗?
If you try this your app will get installed in external storage. 如果您尝试此操作,您的应用将安装在外部存储中。
Did you specify the installLocation in your Manifest.xml? 您是否在Manifest.xml中指定了installLocation ?
Please see also http://developer.android.com/guide/topics/manifest/manifest-element.html 另请参阅http://developer.android.com/guide/topics/manifest/manifest-element.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.