是什么让 Android 应用程序可以重新安装?
通过 Eclipse,我可以轻松地重新安装(无需先卸载该应用程序),这是我目前正在开发的一个小应用程序,可以任意更改任意次数。
当我导出该应用程序(“发布模式”)并将其放置在网站上时,它可以毫无问题地下载和安装。 (当然,我必须首先检查“未知来源”以允许安装非市场应用程序)。
如果我卸载这个应用程序,然后重新下载并重新安装,它安装时没有任何问题。
但是,如果我尝试重新安装此应用程序而不先卸载它,那么 Android 会通知安装失败。
我的问题是为什么?是什么让 Android 应用程序可以重新安装? (即无需先卸载它,从而丢失其现有设置)
Through Eclipse I can easily re-install (without having to uninstall the app first), a small app I am currently developing, any change any number of times.
When I export that app ("release mode") and place it on a website, it downloads and installs without any problem. (I have to check "Unknown sources" for allowing installation of non-Market apps first, of course).
If I uninstall this app, then download it again and install it again, it installs without any problem.
However, if I try to re-install this app without uninstalling it first, then Android notifies that the installation failed.
My question is why? What makes an Android app re-installable? (i.e. without having to uninstall it first, thus losing its existing settings)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不能用未签名的应用程序替换已签名的应用程序。
You cannot replace a signed application with an unsigned one.
您无法安装它,因为它具有相同的应用程序版本。如果你重新编译然后下载它,它就会更新,因为版本会改变。
You fail to install it because it has the same app version. If you recompile it and then download it, it will update, because the version will have changed.