应用内更新通知
今天,当我开始贪婪蜘蛛游戏时,出现一个对话框,告诉我有更新和从市场获取它的链接。我想知道我该怎么做?
如何在不向市场推送更新的情况下更改应用程序(例如在开头添加对话框)?
谢谢你!
Today, when I started the game greedy spider, there was a dialog box telling me there was an update and a link to get it from the market. I'd like to know how can I do that?
How can you change the app (like adding a dialog box at the opening) without pushing an update to the market?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有直接的方法可以做到这一点。
我可以想象这样的事情:
获取新的后从某些外部源获取应用程序版本,其余的非常简单 - 从应用程序的
PackageInfo
获取当前安装的版本,如果它低于最新版本,则显示对话框。There is no straightforward way of doing it.
I can imagine something like that:
After you've fetched the new app version from some external source, the rest is pretty easy - get the current installed version from app's
PackageInfo
and show the dialog if it's lower that the newest one.