Compare the running version of the application with the market version of the application

I want to check the current version of my application on the market and compare it with the current current version.

this code will retrieve the version of my application:

PackageManager m = androidContext.getPackageManager(); String app_ver = m.getPackageInfo(androidContext.getPackageName(), 0).versionName; 

How can I get a version on the market?

thanks!

+4
source share
1 answer

There is no own way to request the Android Market website for the application version.

You could, of course, write an html parser that goes through the Android Market website and extracts your version of the application, but it won't cost (performance is reasonable). Here is a similar question you can read.

+3
source

Source: https://habr.com/ru/post/1398598/


All Articles