【发布时间】:2013-07-02 01:56:32
【问题描述】:
我的应用在不活动后间歇性崩溃。所以我认为我没有正确存储东西。我打开“不要保留活动”进行故障排除,现在我的应用程序到处崩溃。
堆栈跟踪:https://gist.github.com/hanleyhansen/6d41fee54b1e129b7922 这是丢失的布局:https://gist.github.com/hanleyhansen/73ace0c99ae675023e0f
【问题讨论】:
-
“执行暂停未恢复的活动”你是直接调用onPause()吗?
-
@DiogoBento 没有。无处可去。
-
onCreate、onResume 和 onDestroy 都不行?你舒尔吗?
-
我正在调用 onResume() 和 onDestroy()
-
是的。你为什么这样做?你不应该那样做。 Android 系统负责调用此方法。
标签: java android eclipse android-view