Prompt Android App User to Update App if current version <> market version

后端 未结 7 773
温柔的废话
温柔的废话 2020-12-01 02:46

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 th

7条回答
  •  无人及你
    2020-12-01 03:50

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

    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.

    Your app will then only have to fetch 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.

提交回复
热议问题