vishnu pratap singh
vishnu pratap singh

Reputation: 159

Way to auto update android app

I have developed an android app which keeps runing continously for days. Now i normally keep making updates of this app and i want that all the phones running my app should somehow be able to auto update my app installed in them.I have not yet released my app in the market.In my app i have already developed push notification feature if that helps ? Any ideas ?

Upvotes: 3

Views: 1110

Answers (5)

tcbrazil
tcbrazil

Reputation: 1325

Vishnu, assuming you don't want to use the Google Play auto-update feature, you will need an Updater. In two of the companies I worked for, we had a similar problem with both Windows Mobile 6.x and Android apps - no Google Play allowed for security reasons - and I used this solution in both cases successfully:

enter image description here

The main app check if it's updated, against a Web Service. It receives the current version & the URL from where to download the new version, if necessary. The main app then starts the Updater app, passing the URL, and quit.

The Updater download the new program, via HTTP, showing to the user the % downloaded. The user can cancel the download anytime, in a controlled way, and the Updater can registry this cancellation.

Since the new app is downloaded, the Updater run the new app, and quit.

Upvotes: 0

Exceptional
Exceptional

Reputation: 3004

You can use services in android to check if there is any update in the service, if so trigger the service, to update the stuffs, else destroy it.[User might not come to know about this]

Is this what you wanted?!

Upvotes: 0

AVEbrahimi
AVEbrahimi

Reputation: 19134

You can use https://github.com/commonsguy/cwac-updater

It's really easy and fits your need.

I used it many times.

Upvotes: 1

mtmurdock
mtmurdock

Reputation: 13062

If the app is on the Android Market (now Google Play Market) then there is no way to force the user to update. Like DCSoft said, you could have your app check some server to see if an update is available. At that point you could either bug the user until they update, or you can prevent the app from functioning until it is up to date, but that's about it.

Upvotes: 2

DCSoft
DCSoft

Reputation: 237

you could use a server and get the app to check for new updates and download accordingly.

Not sure if this is what you're looking for.

Upvotes: 3

Related Questions