Reputation: 7887
i want to check the current version of my app in the market and compare it with the current running version.
this code will retrive the version of my running app:
PackageManager m = androidContext.getPackageManager();
String app_ver = m.getPackageInfo(androidContext.getPackageName(), 0).versionName;
how i can retrive the version in the market?
thanks!
Upvotes: 4
Views: 1687
Reputation: 30988
There's no native way of querying the Android Market site for an app's version.
You could, of course, write an html parser that goes through the Android Market site and retrieves your app version, but it won't be worth it (performance wise). Here's a similar Stack Overflow question you can read through.
Upvotes: 3