自动更新(私人)Android应用 [英] Auto-Update for (private) Android apps

查看:177
本文介绍了自动更新(私人)Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个非公开的Andr​​oid应用程序,即应用程序将无法在全球Android电子市场提供。该应用程序将在客户数量有限安装,如:通过使用一个apk文件。 我怎样才能使在此应用程序的自动更新功能?

I'm developing a non-public Android app, i.e. the app won't be available in the global Android Market. The app will be installed on a limited number of clients, e.g. by using an apk file. How can I enable an auto-update functionality in this app?

我看到不同的潜在选项(我不知道那些在技术上很难,甚至不可能实现或者是否有任何现有的各种功能,可重复使用):

I see different potential options (I do not know if those are technically hard or even impossible to implement or if there are any existing functionalities that can be reused):

  • 在每次启动的应用程序测试,如果有新的版本存在(通过请求服务器),如果是下载新的APK,并用新的版本替换其本身。
  • 使用(或开发?)分离的应用程序或服务进行更新检查和更换过程。
  • 使用(或开发?)私人市场的应用程序,它具有自动更新选项。这个选项类似于第二个,但更一般的:该市场应用程序将被连接到一个信息库,即它会处理的(专用)的应用程序的任意数

我会preFER选项之一,因为自动更新功能包含在其中需要较少的开发工作的应用程序。

I would prefer option one since the auto-update functionality is included in the app which needs less development efforts.

推荐答案

janjonas,在我公司工作,我们也有类似的问题,与Windows Mobile 6.x和我们使用pretty的大致相同的解决方案指出通过EboMike

janjonas, in the company I work we had a similar problem with Windows Mobile 6.x, and we use pretty much the same solution pointed by EboMike:

如果它的更新,对一个WebService的主要应用程序的检查。它接收当前版本和放大器;从那里,如果需要下载新版本的URL。主要的应用程序,然后启动更新的应用程序,通过该URL,并退出。

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

更新程序做新节目的下载,通过HTTP,流露出来的%下载用户。用户可以随时取消下载,以可控的方式,和更新程序可以注册表中的此消。

The Updater do the download of 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.

这篇关于自动更新(私人)Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆