应用程序如何启用“允许自动更新”?在安卓市场
我注意到一些应用程序,如 Google 地图、Android 版 Facebook 等(全部预装),在我没有这样做的情况下选中了“允许自动更新”复选框。
是否只能用于预加载的应用程序?
我如何通过我的应用程序实现这一目标?
I noticed that some apps like Google Maps, Facebook for Android etc. (all preloaded BTW), have their "Allow Automatic Updates" check box checked without me doing so.
Is it possible for preloaded apps only?
How can I achieve that with my app?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
用户必须明确检查此选项。我认为应用程序中没有任何 API 可以执行此操作。
您可以在询问用户是否愿意(例如,在对话框中)后,将他带到您的应用程序的市场页面,以便他可以查看。
The user has to explicitly check this option. I don't think there is any API to do this from the app.
You could, after asking the user if he wants to (say, in a dialog box), take him to your app's market page, so that he can check it.
我从谷歌群组中找到了这篇文章,可能会对您有所帮助:
http ://groups.google.com/group/android-developers/browse_thread/thread/e5e77d5d8f05f8d5?pli=1
它解释了此功能的工作原理。希望这有帮助!
I found this post from google groups that may help you:
http://groups.google.com/group/android-developers/browse_thread/thread/e5e77d5d8f05f8d5?pli=1
It explains how this feature works. Hope this helps!
用户可以选择允许应用程序由市场自动更新。
但是,如果应用程序的权限已更改,则它不起作用。用户必须手动更新并同意新权限。之后,它将继续自动更新。
差不多就这样了。
Users can opt to allow an app to be auto-updated by the Market.
However, if the permissions for the app have changed, it does not work. The user must manually update and agree to the new permissions. After that, it will continue to auto-update.
That's pretty much it.