当Android应用是强制关闭,会发生什么 [英] What happens when android app is force closed

查看:130
本文介绍了当Android应用是强制关闭,会发生什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣知道,当用户在弹出时,应用程序没有响应的时间显著量点击强制关闭发生了什么。

I am interested to know what happens when a user click a "force close" in a pop up when application is not responding for a significant amount of time.

什么的所有事件会被解雇?
将任务从托盘中删除?

What all events will be fired? Will the task removed from tray?

我认为当一个活动是强制关闭,Dalvik的将清除应用程序缓存,并在后面的堆栈开始最后一项活动。但不知道它究竟是如何工作的。

I think when an activity is force closed, dalvik will clean the app cache and start last activity in the back stack. But not sure how exactly it works.

任何输入AP preciated。

Any input is appreciated.

下面是我在看一个资源
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html

推荐答案

强制退出将杀死应用程序,发送SIGKILL信号给进程,进而杀死虚拟机。没有信号从虚拟机后,发送至您的应用程序时出现这种情况,和国家将无法恢复。

Force quit will kill the application, sending the SIGKILL signal to the process and thus killing the virtual machine. No signals are sent from the Virtual Machine to your application when this happens, and state won't be recovered after that.

希望它帮助。

问候。

这篇关于当Android应用是强制关闭,会发生什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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