Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I update my application programmatically? [duplicate]

Tags:

android

Possible Duplicate:
Is there a way to automatically update application on Android?

I have an android application. my user install it. how can I notify the user that a new version is available.

my application is not in Market.

thanks in advance.


2 Answers

There are two models that are basically used to tackle the issue.

  1. Pull based
  2. Push Based

Its depends on the architecture or design of particular system that determines whether pull based or push mechanism is used.

  1. For pull based model you just make one http request to concerned server regarding the new version of application. The current application version no can be saved in SQLLite in android application. This can be given to server and new version can be checked against it at the server.
  2. For push mechanism you can use GCM push notification service.. details of which are given at here
like image 195
Relsell Avatar answered Jun 22 '26 15:06

Relsell


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

It is an updater to update your application outside of the Google Play / Market

This is exactly what you are looking for

like image 42
Julian Suarez Avatar answered Jun 22 '26 14:06

Julian Suarez