Android的应用程序更新 - 如何? [英] Android application update - how to?

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

问题描述

什么是让我的用户执行应用程序更新的最佳方法是什么?

有没有办法更新后强制设备重新启动?我问这个,因为我的应用程序注册在启动某些行为。

请注意,应用程序将不会被发表在了市场。

更新:

我的应用程序将是pinstalled一组〜100手机$ P $。 我应该定期调用web服务,将通知该设备有关升级可用,然后,一个WebKit的视图中重定向到一个的apk文件?

解决方案
  

什么是让我的用户的最佳方式   执行应用程序更新?

通过他们得到了摆在首位他们的设备上的应用程序以同样的方式,presumably。如果他们获得通过固件应用程序,他们得到通过固件更新应用程序更新。如果他们通过您的网站下载你的应用程序,他们得到的应用程序更新,通过您的网站。

  

有没有什么办法来强制设备   在更新之后重新启动?

没有,谢天谢地。

  

我问这个,因为我的应用程序   注册在启动某些行为。

有一些方法你可以通知你的包进行了更新,虽然我没有技术,方便的现在。只要运行在启动逻辑,那里的第一轮,那么后续的重新引导(如有)将通过在启动逻辑本身进行处理。

What is the best way to let my users perform an application update?

Is there any way to force device reboot after the update? I'm asking this because my application registers some behavior on boot.

Please note, the application would not be published in the Market.

Update:

My app will be preinstalled on a set of ~100 handsets. Should I periodically call a webservice that will inform the device about upgrade available, and then, redirect to an .apk file within a webkit view?

解决方案

What is the best way to let my users perform an application update?

Via the same way they got the app on their device in the first place, presumably. If they are getting the app via firmware, they get app updates via firmware updates. If they are downloading your app via your Web site, they get app updates via your Web site.

Is there any way to force device reboot after the update?

No, thank goodness.

I'm asking this because my application registers some behavior on boot.

There is some way you can be notified that your package was updated, though I do not have the technique handy right now. Just run your on-boot logic there for the first round, then subsequent reboots (if any) will be handled by the on-boot logic itself.

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

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