Getting the latest version of the application from the Google PlayStore if you download mutiple apk

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 ();

            //It retrieves the latest version by scraping the content of current version from play store at runtime
            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?

+4
source share
1 answer

" ", Google Play. Google Play APK . . , APK , Google Play .

Google APK.

0

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


All Articles