Check for my app update programmatically (and update the app programmatically)

9,392 views
Skip to first unread message

AD

unread,
Nov 3, 2010, 6:36:47 AM11/3/10
to android-...@googlegroups.com
My understanding is that android market lags behind apple store significantly functionality-wise and there is no bird view of app updates available.
Sooo I'm left with a typical "build your own shimano" the android way.
Is there an API in my app to check if a newer version is available so that I can present the user with an option to pull the updated apk and install it for him?
I get piles of garbage in response to an assortment of google searches i run on the subject.
thanks.

Kipling Inscore

unread,
Nov 3, 2010, 11:58:33 AM11/3/10
to android-...@googlegroups.com
On Wed, Nov 3, 2010 at 03:36, AD <isq...@gmail.com> wrote:
> My understanding is that android market lags behind apple store
> significantly functionality-wise and there is no bird view of app updates
> available.

I may be misunderstanding your meaning (and I'm not familiar with
Apple app store details) but when an update is available for an app in
the Android Market, users who have that app installed will get a
notification that will say how many installed apps have updates
available and, when activated, take the user to the Market downloads,
showing which have updates available and allowing the user to download
those updates. I don't know how long it takes between the update being
available in the Market and the notification.

> Sooo I'm left with a typical "build your own shimano" the android way.
> Is there an API in my app to check if a newer version is available so that I
> can present the user with an option to pull the updated apk and install it
> for him?

I don't know of one. If you have a website or internet-attached server
you could have a file containing the app's version number.
I don't know, however, if you should do this, since publishing your
app in the official market will provide the notification for you.

Cis Dev

unread,
Jul 31, 2013, 9:32:00 AM7/31/13
to android-...@googlegroups.com, isq...@gmail.com
This file working fine but recently its giving problem, may be some pattern change in play url,
How can i got it work again ?

On Friday, April 5, 2013 12:37:03 AM UTC+5:30, AVINASH S KARANTH wrote:

Download the following file - CheckUpdate.java

https://docs.google.com/file/d/0B2EsfRbZjpF7cjRpU25DTEFkMlU/edit?usp=sharing
  

 - Attach(Copy) it to your Project and add package name
 - Put the following code where you want to check for updates

new CheckUpdate().check("com.nashapp.NCERTBooks"(APPID),NCERTBooks.this(Context));

 - Simple pop up message comes and redirects it to your market link when clicked yes.

Cis Dev

unread,
Aug 1, 2013, 4:36:46 AM8/1/13
to android-...@googlegroups.com, isq...@gmail.com
:)
Now its working.....

i have make changes in regular expression

New Regx is Pattern pattern = Pattern.compile("softwareVersion\">[^<]*</d");

HamiNez

unread,
Aug 19, 2013, 3:13:02 AM8/19/13
to android-...@googlegroups.com, isq...@gmail.com
I am not able to get the HTML content, inputStream could only read part of header, not reaching to body part. Anyone's idea?

Raj Kr

unread,
Mar 1, 2016, 12:10:21 PM3/1/16
to android-platform, isq...@gmail.com

i also replace regx with ur ""New Regx is Pattern pattern = Pattern.compile("softwareVersion\">[^<]*</d"); "" but always throwing exception no successful match please provide some solution please

Raj Kr

unread,
Mar 1, 2016, 12:10:30 PM3/1/16
to android-platform, isq...@gmail.com
cis I m Using ur updatechecker but at pattern.compile its return false i tried every possible match but same result...please let me some solution if u had

Creative Era

unread,
Jun 23, 2017, 10:49:07 AM6/23/17
to android-platform, isq...@gmail.com
String MarketVersionName = (matcher.group(0).substring(matcher.group(0).indexOf(">") + 1, matcher.group(0).indexOf("<"))).replaceAll(" ","");

use this 
Reply all
Reply to author
Forward
0 new messages