(Eventually make a cronjob and make the version update automatic, and send a notification when something goes wrong)
I would recommend that you make a file in your own website or API, with the version number. Just remember if you update your app, you need to change the version in your own API with the app version number. There is a risk that something may change in the API or the webpage, so you should consider to check if the version code of the current app is below the version number you get from your own API. Instead of connecting to external APIs or webpages (like Google Play Store). You should consider to get a version number from an API. Using the in-app Updates API:Īs far a I know, there is no official Google API which supports this. Android announced a feature which will probably fix this problem.