我如何编程方式更新我的应用程序? [英] How can I update my application programmatically?

查看:124
本文介绍了我如何编程方式更新我的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/3057771/is-there-a-way-to-automatically-update-application-on-android\">Is有没有办法在Android上自动更新应用程序?

我有一个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.

先谢谢了。

推荐答案

但是也有一些基本上是用来解决问题的两种机型。

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


  1. 基于拉

  2. 推基于

及其取决于体系结构或用于确定是否使用基于拉或推机构特定系统的设计。

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


  1. 对于基于拉模式您刚刚做出关于应用程序的新版本的一个HTTP请求到服务器的关注。当前应用程序版本号可在Android应用程序被保存在SQLLite。这可以提供给服务器和新版本可以针对它在服务器进行检查。

  2. 其中
  3. 对于推送机制,您可以使用GCM推送通知服务..细节在此处

  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

这篇关于我如何编程方式更新我的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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