I am developing a mobile app, for both Android and BlackBerry.
I’ve uploaded my latest application for OTA installation by including version code and version name into a plain text file on the server.
Within my app, how do I convert code version and version name from the plain-text format on my server to a string. I want to do this so I can have the app compare it’s current version against what is available on the server, so that if a newer version on the server, the user will be offered an update to download.
This answer is for the android part only.
To get the app version number and name from your application, you can do the following (as suggested by @ColorWP.com
Getting the app version and name:
To read your file from the net:
Make sure you add Internet permission, as suggested by @ColorWP.com
Compare the version: