Home > Android > How to check version on google play

How to check version on google play


Firstly, you need to add this command in gradle file:

compile 'org.jsoup:jsoup:1.9.2'

And then add following code:
Jsoup.connect("https://play.google.com/store/apps/details?id=yourappbundley&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("div[itemprop=softwareVersion]")
.first()
.ownText();
Categories: Android
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: