当应用程序用户下次打开应用程序时,向他们发送消息以下载新版本
正如标题所说。我想知道如何为我的 Android 应用程序现有用户执行此操作?就像下次开始游戏时会出现一个小弹出窗口,提示您应该下载现在可用的新版本?我正在使用 eclipse 来开发这个应用程序。 我没有这个应用程序的任何服务器,也没有网站。所有数据都在安卓市场的应用程序内。
As the heading says. I would like to know how can i do this for my android apps existing users? Like when the start the game next time a small popup says you should download new version which is available now? I am using eclipse to develop this app.
I dont have any server for this app and there is no website. All the data is within the app on android market.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当有新版本可用时,手机上的 Android Market 软件将通知用户。根据用户的设置,它甚至可能自动下载并安装新版本。
不要浪费时间尝试自己实现这一点。让市场来处理吧。
The Android Market software on the phone will notify users when new versions become available. Depending on the user's settings, it may even download and install the new version automatically.
Don't waste time trying to implement this yourself. Let the Market handle it.
如果没有互联网连接,您无法检查应用程序的新版本。最简单的方法是拥有一台自己的服务器,但由于您没有服务器,所以只有一个选择:
您必须访问您的应用程序的市场链接并过滤该网站的源代码以获取版本号。
这不是最好的方法,因为谷歌可能会更改市场网站的源代码以进行增强。因此,您必须确保跟踪这些更改。
有一点是肯定的:即使有较新的版本,应用程序也应该可以运行。如果用户能够决定是否要使用旧版本或更新,那么对用户来说会更好(并且不那么烦人)。考虑到用户由于更新大小或其他原因不想下载最新版本。
you cannot check for new versions of your app without internet access. The easiest way is to have an own server, but since you don't have one, there is only one option:
You have to access the market link of your App and filter the source code of this website for the version number.
This is NOT the best way since Google probably will change the source code of the market website for enhancements. So you have to make sure that you keep track of those changes.
One thing is for sure: An app should work even if there is a newer version. It is much better (and less annoying) for the user if he is able to decide wether he wants to use the old version or update. Consider that the user does not want to download the newest version because of the size of the update or other reasons.