How can I update the application programmatically?

Possible duplicate:
Is there a way to automatically update an app on Android?

I have an android app. my user installs it. how can i notify the user when a new version is available.

my app is not included in the Market.

early.

+3


source to share


3 answers


There are two models that are mainly used to solve the problem.

  • Pull based
  • Push-based


It depends on the architecture or design of the particular system, which determines whether the mechanism is pull-based or push-based.

  • For a pull-based model, you simply make one HTTP request to the appropriate server for the new version of the application. The current version of no app can be saved to SQLLite in Android app. This can be provided to the server and the new version can be checked against it on the server.
  • For the push mechanism, you can use the GCM push notification service, the details of which are given in here
+2


source


If you already have users using your app and you want to notify them, as far as I can tell:

If your app doesn't already have a built-in system to check for updates, you can't find out where (on which device) your app is deployed, so you can't notify users of a new version ...



To overcome this in the future, you must include a link or button in your app settings that will check for a new version when the user clicks on it ...

If you are just starting to develop an application: C2DM is permission. Please answer the inquiry from relsell for more details.

+2


source


Check out this project with CommosGuy: https://github.com/commonsguy/cwac-updater

Update for your app outside of Google Play / Market

This is exactly what you are looking for

+2


source







All Articles