InstallLocation 似乎不起作用
我正在弄乱测试应用程序清单中的 installLocation 属性,但它似乎不想工作。我尝试过“auto”和“preferExternal”,在这两种情况下,它似乎仍然表现得好像我根本没有设置它一样。
它在我的 2.3.3 Droid X 和模拟器上都执行此操作。我搜索了很多,似乎大多数人都因为他们的 sdk 版本设置而遇到此问题。我的 minSDK 设置为 4,targetSDK 设置为 9,所以应该没问题。
我唯一能想到的可能的原因是我仍然设置了“可调试”属性,这可能会对它产生某种不利影响?我还认为它可能不允许它安装到 SD 卡,因为它是在连接到我的电脑时安装的,但它永远不会允许我“移动到 SD 卡”,即使在断开连接后也是如此。
这是我真的希望在未来的应用程序中能够很好地处理的事情,所以任何关于如何让它工作的建议都会很棒。谢谢。
I am messing with the installLocation attribute in the Manifest of my test app, but it doesn't seem to want to work. I have tried both "auto" and "preferExternal", and in both cases it seems to still be acting as though I don't have it set at all.
It does this on both my 2.3.3 Droid X, as well as the emulator. I've searched quite a bit, and it seems that most people have problems with this because of their sdk version settings. My minSDK is set to 4 and my targetSDK is set to 9, so that should be fine.
The only thing I can think of that may be the cause is that I still have the "debuggable" attribute set, and that may have some kind of adverse effect on it? I also thought it may be possible that it isn't allowing it to install to the SD card because it was mounted while connected to my PC, but it never would allow me to "Move to SD Card", even after being disconnected.
This is something I would really like to have a good handle on for future apps, so any suggestions on how to get it working would be great. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将 minsdk 设置为 8
更多详细信息请参见安装位置
You need to have the minsdk set to 8
More details here Install Location