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

后端 未结 7 751
温柔的废话
温柔的废话 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:24

    For prompting Android App User to Update App if current version is not equal to market version, you should first check the app version on the market and compare it with the version of the app on the device. If they are different, it may be an update available. In this post I wrote down the code for getting the current version of market and current version on the device and compare them together. I also showed how to show the update dialog and redirect the user to the update page. Please visit this link: https://stackoverflow.com/a/33925032/5475941

提交回复
热议问题