阅读背景:

Android -是onDestroy,用来破坏活动,它的变量和释放内存

来源:互联网 

I have a bug in my code that made me think I don't fully understand the Android Lifecycle. Yes, I have read all the docs and looked at the diagrams, but they seem to talk only about when to save data, when the activity may loose focus or get killed. However, my question is if I don't need to save state, what happens to the variables & their stored values? I expected them to be destroyed to, but a bug in my code seems to indicate otherwise.I have a bug in my code that made me think I do




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: