问题
Possible Duplicate:
Is there a way to automatically update application on Android?
I am looking to create a private android application for my organization. I do not want to publish it publicly on Google Play, since it is only being used for internal purposes. Is there a way to have the application auto-update? Or, is there a way to publish an app to Google play and make it private?
回答1:
There is not currently a way on Market to filter for private groups.
I'd recommend the following:
-Host your apk on a private server
-Have a URL on said server where the app can ping to check the version number of the latest available apk.
When newer version is found:
-Download it to specific location using DownloadManager.
-Throw a message in the user's notification bar using NotificationManager
-Set it up so that when user clicks on that notification, an install prompt for that apk file appears. Details for that are in another SO thread.
来源:https://stackoverflow.com/questions/5343412/android-application-updates