提示Android应用程序的用户,如果更新应用程序当前版本<>市场版本 [英] Prompt Android App User to Update App if current version <> market version

查看:123
本文介绍了提示Android应用程序的用户,如果更新应用程序当前版本<>市场版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

比方说我的Andr​​oid应用程序的版本0.1在用户的手机上目前安装。每次他们启动我的应用我要检查是否有在Android Market提供不同的版本让我们说这个版本是0.2。如果没有这两个版本之间的不匹配,我想显示一个对话框,提示升级的应用程序的用户。

Lets say my Android App version 0.1 is installed currently on the User's phone. Everytime they launch my App I want to check if there is a different version available in the Android Market let's say this version is 0.2. If there is a mismatch between these two version I want to show a dialog box prompting the user to Upgrade the App.

我完全理解有从Android Market自身的通知程序存在的用户,但据我的分析数据来讲是不是很有效,提醒用户升级到App的新版本。

I totally understand there exists a notification procedure from Android Market itself to the users but as far as my Analytics data is concerned it is not very effective in reminding users to upgrade to the new version of the App.

任何有识之士将是非常有益的。谢谢StackOverflowers,你们摇滚!

Any insight would be very helpful. Thanks StackOverflowers, you guys rock!

推荐答案

而Android Market是一个封闭的系统,并具有唯一的一个非官方的API,它可以在任何时间点的突破。

The Android Market is a closed system and has only an unofficial api that might break at any point of time.

您最好的选择是简单地是你的Web服务器中,你只需要当你张贴在市场更新您的应用程序的当前版本上托管的文件(XML,JSON或简单文本)。

Your best bet is simply to host a file(xml, json or simple text) on a web server of yours in which you just have to update the current version of your app when you post it on the Market.

您的应用程序,然后只需要fetche在启动该文件,检查阉当前已安装的应用程序有一个更低的版本号,并显示一个对话框,警告他落后于用户。

Your app will then only have to fetche that file at startup, checks wether currently installed app has a lower version number and displays a dialog to warn the user he is lagging.

这篇关于提示Android应用程序的用户,如果更新应用程序当前版本<>市场版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆