检查编程在Android Market中我的应用程序版本 [英] checking my app version programmatically in android market
问题描述
目前我正在检查上推出的应用程序版本code和我的服务器上的最新版本code匹配,并在此基础上匹配我发送用户得到最新的更新从Android Market。
Currently I'm checking the app version code on launch and match it with latest version code on my server and based on this matching I send user to get latest update from Android market.
它的工作很好,但我的问题是,我必须手动更改的最新版本code我的服务器上,我不知道什么时候新版 APK
被市场激活。
有没有什么办法来检查版本$ C $应用程序的c在Android市场上直接这样我就可以直接将用户推向市场时,新的APK被激活?
It's working well but my problem is that I have to manually change the latest version code on my server and I don't know exactly when new version of APK
gets activated in market.
Is there any way to check version code of app in Android market directly so that I can send user directly to market when new apk gets activated?
在此先感谢
推荐答案
谷歌播放不提供检索元数据的任何官方的API。但是,您可以检查在非官方的API <一href="http://$c$c.google.com/p/android-market-api/">http://$c$c.google.com/p/android-market-api/.
Google Play does not provide any official APIs for retrieving metadata. You could however, check the unofficial API at http://code.google.com/p/android-market-api/.
具体,看看维基页面 HowToSearchApps 。对查询的响应包含版本信息:
Specifically, take a look at the Wiki page HowToSearchApps. The response to the query contains version information:
{
"app": [
{
"rating": "4.642857142857143",
"title": "Ruboto IRB",
"ratingsCount": 14,
"creator": "Jan Berkel",
"appType": "APPLICATION",
"id": "9089465703133677000",
"packageName": "org.jruby.ruboto.irb",
"version": "0.1",
"versionCode": 1,
"creatorId": "\"Jan Berkel\"",
"ExtendedInfo": {
"category": "Tools",
"permissionId": [
...
这篇关于检查编程在Android Market中我的应用程序版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!