简体   繁体   English

Android市场应用程序自动更新

[英]Android market application autoupdate

Some of the applications I have installed on my phone update automatically, I don't even have to click anything. 我手机上安装的一些应用程序会自动更新,我甚至不需要点击任何内容。 This is the behavior I expect from the application I'm developing myself. 这是我期望从我自己开发的应用程序中获得的行为。 Do I have to configure something or will android market take care of this? 我必须配置一些东西还是Android市场会照顾这个?

Auto update is possible. 可以自动更新。 But you should click app to start it at least. 但是你应该点击应用程序至少启动它。 In the start process, you can send the current version status to server through web service, server will identify the version if there is new version. 在启动过程中,您可以通过Web服务将当前版本状态发送到服务器,如果有新版本,服务器将识别版本。 if yes, a new version apk file will be downloaded, and the most important is how to install a apk file sliently. 如果是的话,将下载一个新版本的apk文件,最重要的是如何安装一个apk文件。

Generally, you can run the 一般来说,你可以运行

pm install -r xxx.apk

the apk will be automatically installed, and your app will be updated. apk将自动安装,您的应用程序将更新。

This is not a behaviour you can set on the application itself. 这不是您可以在应用程序本身上设置的行为。 Each user chooses how the applications he downloads are updated. 每个用户选择如何更新他下载的应用程序。 This is a market setting. 这是一个市场环境。

In the latest versions of the market, the default is now set to auto-update, but the user is free to untick the box and decide for manual updates, per application. 在市场的最新版本中,默认设置现在设置为自动更新,但用户可以随意取消选中此框并根据应用程序决定手动更新。 If you open settings, you can also decide whether it's done on Wi-Fi only or on mobile data as well. 如果您打开设置,您还可以决定是仅在Wi-Fi上还是在移动数据上完成。

This will be done on all updates except the ones where a permission change occurred. 这将在发生权限更改的更新之外的所有更新上完成。 For them, the market will still require a manual update. 对他们来说,市场仍然需要手动更新。

我几乎肯定你不能强迫用户更新他们安装的应用程序,但我认为这是Android Market的默认行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM