“清除数据"还会杀死该应用程序吗? [英] Does “Clear Data” also kill the app?

本文介绍了“清除数据"还会杀死该应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当(在Gingerbread中,版本为2.3.x)我点击菜单=>管理应用=>应用中的清除数据"按钮时, 强制关闭"按钮也将被禁用.这是否意味着清除数据"也会杀死该应用程序?

When (in Gingerbread, 2.3.x) I hit "Clear Data" button in Menu => Manage Apps => App, "Force Close" button also becomes disabled. Does it mean that "Clear Data" also kills the app?

此外,我注意到在Ice Cream Sandwich中不会发生这种情况.因此,姜饼和冰淇淋三明治之间的清除数据"工作方式不同吗?

Also, I noticed that in Ice Cream Sandwich this doesn’t happen. So, the way "Clear Data" works is different between Gingerbread and Ice Cream Sandwich?

更新:正如 MisterSquonk 所说,Froyo(2.2.x)的行为与ICS(4.x)相同,即在禁用后不会禁用强制关闭"您清除应用程序的数据.有人知道为什么行为如此不同吗? Gingerbread中的错误或某种临时实验导致了该应用程序被杀死并清除了其数据?

Update: as MisterSquonk said, Froyo (2.2.x) behaves the same way as ICS (4.x), that is doesn’t disable Force Close after you clear data of the app. Anyone knows why is the behavior so different? What it the bug in Gingerbread, or some temporary experiment, that killed the app together with clearing its data?

P.S.无法创建姜饼"标签,信誉不足:) P.P.S. @MisterSquonk,感谢您的标记:)

P.S. Couldn’t create "Gingerbread" tag, not enough reputation :) P.P.S. @MisterSquonk, Thanks for the tag :)

更新2 :也选中了Honeycomb(3.2),它的行为与Froyo和ICS相同. 清除数据后,只有姜饼禁用强制关闭"功能.

Update 2: Checked Honeycomb (3.2) as well, it also behaves the same way as Froyo as ICS. Only Gingerbread disables Force Close after clearing the data.

推荐答案

清除数据确实会杀死该应用程序,并且始终存在.

Clear Data does kill the app, and always has.

"Force Stop"经历了各种含义的反复.它曾经意味着只杀死所有进程和服务,并且清除数据也将与强制停止相同.该平台还有一些较旧的版本,不如何时禁用该按钮好,这可能就是为什么您看到它在2.2中保持启用的原因.

"Force Stop" has gone through various iterations of meanings. It used to mean to just kill all processes and services, and clearing data would also do the same as a force stop. There were also older iterations of the platform that were not as good as figuring out when to disable the button, which is probably why you are seeing it remain enabled in 2.2.

但是,我相信在3.2版中,强制停止"的含义已更改为将应用程序置于一种状态,在该状态下,该应用程序将无法运行,直到用户做了一些明确地启动它的操作(例如,从启动器启动,作为输入法,等等).进行更改后,清除数据"继续终止进程并停止其服务,因此该应用程序未处于完全停止状态,因此该按钮保持启用状态.

However in 3.2 I believe the meaning of "Force Stop" change to put the application in a state where it would not be able to run until the user had done something to explicitly start it (such as launching it from launcher, selecting it as an input method, etc). When that change was made, "Clear Data" continued to just kill the processes and stop its services, so the app was not in the full stopped state so the button remains enabled.

这篇关于“清除数据"还会杀死该应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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