I have downloaded several APKs for my application on Playstore to support it on all devices.
Now the problem is when I get the version of Playstore using the following code, which it returns “Varies with device”.
String playStoreUrl = " http://play.google.com/store/apps/details?id= " + mContext.getPackageName ();
Document doc = Jsoup.connect(String.valueOf(playStoreUrl)).get();
mAppStoreVersion = doc.getElementsByAttributeValue
("itemprop","softwareVersion").first().text();
mAppStoreVersion "Changes with the device." Is there any other way to get the latest version of the app from Playstore?
source
share