当所有的时候叫的onSaveInstanceState()方法的情况下? [英] When are ALL the cases when the onSaveInstanceState() method called?

查看:70
本文介绍了当所有的时候叫的onSaveInstanceState()方法的情况下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所读到的资料都提到的几个案件,并以其他一些情况下得出的结论。什么是所有当调用视图/活动的onSaveInstanceState方法的情况下?

All the sources I read have all mentioned couple of cases and concluded with "a few other cases". What are ALL the cases when the onSaveInstanceState method called in a View/Activity?

推荐答案

的<一个href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29"相对=nofollow>商务部说:

此方法称为活动可能被杀死之前,这样,当它回来一段时间,在未来,它可以恢复自己的状态。

This method is called before an activity may be killed so that when it comes back some time in the future it can restore its state.

这篇关于当所有的时候叫的onSaveInstanceState()方法的情况下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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