1. Are you ready for the Galaxy S20? Here is everything we know so far!

How can I get app version number from google play store

Discussion in 'Android Development' started by Kabo Technologies, Aug 24, 2020.

  1. Kabo Technologies

    Thread Starter

    Hello,
    How can I get app version number from google play store by using Android java code/API as I am trying to display app version in my UI page.
    I tried below method with "Jsoup.connect" but it return version number as "Varies with device"
    private String getVersion(String url) {
    String newVersion = null;
    try {
    newVersion = Jsoup.connect(url + "&hl=en")
    .timeout(30000)
    .userAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6")
    .referrer("http://www.google.com")
    .get()
    .select(".hAyfc .htlgb")
    .get(7)
    .ownText();
    } catch (Exception e) {
    e.printStackTrace();
    }
    return newVersion;
    }
    Please let me know if there is any API available so that I can use.
    And share me your ideas which are available best techniques to show APP version in my UI page.
    Br,
    Kabo Technologies
     


Loading...
Similar Threads - app version number
  1. App Update
    Replies:
    0
    Views:
    123
  2. App Update
    Replies:
    0
    Views:
    147
  3. App Update
    Replies:
    0
    Views:
    132
  4. App Update
    Replies:
    0
    Views:
    195
  5. App Update
    Replies:
    0
    Views:
    196
  6. App Update
    Replies:
    0
    Views:
    253
  7. App Update
    Replies:
    0
    Views:
    163
  8. App Update
    Replies:
    0
    Views:
    183
  9. App Update
    Replies:
    0
    Views:
    218
  10. App Update
    Replies:
    0
    Views:
    82

Share This Page

Loading...