Checking my app version programmatically in Android market

后端 未结 2 1738
谎友^
谎友^ 2020-11-29 08:05

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 An

2条回答
  •  孤城傲影
    2020-11-29 08:59

    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/.

    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": [
    ...
    

提交回复
热议问题