Android应用程序更新与删除和安装 [英] Android application update vs remove and install

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

问题描述

我将应用上传到Google Play商店。
在应用程序的第二个版本中,我修复了一些错误,并在市场上发布了更新。



现在我看到我修复的那部分错误仍在继续出现。有趣的是,当我删除应用程序并安装它(不更新它)或当我第一次在新设备上安装应用程序(来自市场)时,一切都很好。



<因此,我的问题是,通常在第一次安装或重新安装(移除然后安装)之间进行更新的差异是什么? >
  • 当我更新我的应用程序时,运行服务时发生了什么情况,以及它如何从第一次安装开始?

  • 知道如何强制Google Play商店在更新时删除并停止所有旧的后台服务? 当您将更新上传到Google Play商店时,它会自动将其归档。 以前的版本。用户下载新版本。


    但是,在用户手机上,由于应用程序数据留在设备上,您可能会看到旧bug的影响。重新安装前删除应用程序时,该数据将被删除。作为应用程序的作者,您可以管理应用程序数据,以便用户可以更新到应用程序的新版本,而不会使旧数据与更新的应用程序产生问题。仔细研究一下如何以及您正在存储的数据类型以及哪些部分可能会因升级而受到影响。

    这些链接可能有所帮助: http://developer.android.com/guide/topics/data/data-storage.html
    如何重置应用程序状态时升级市场


    I upload my application to google play store. In the second version of the application i fix some bugs, and release update on the market.

    Now I see that part of the bugs that i fix continue to appear. the interesting thing is that when I remove the application and instal it (not update it) or when i first install the application (from the market) on new device everything is good.

    So my question is

    1. generally what is the diff between first installation or reinstall (remove and then install) to update?
    2. what happened to running services when I update my app and how its diff from first install?

    3. I want to know how can I force Google play store to delete and stop all old background services when updating?

    解决方案

    When you upload an update to Google Play store, it automatically archives the previous version. Users download the new version.

    However, on the users phone, you may see the effect of old bugs, because of the app data left on the device. When the app is deleted before reinstalling, this data is removed. As the author of an app, you can manage the app data so that the user can update to a new version of your app, without having the old data create problems with the updated app. Take a closer look at how, and what kind of data you are storing and which parts may be affected by upgrading.

    These links may help: http://developer.android.com/guide/topics/data/data-storage.html
    How to reset an application states when upgrading from the market

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

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