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.
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.
:)
String MarketVersionName = (matcher.group(0).substring(matcher.group(0).indexOf(">") + 1, matcher.group(0).indexOf("<"))).replaceAll(" ","");