Why am I getting a crash when exiting my Activity?(为什么我在退出我的 Activity 时会崩溃?)
问题描述
当我(通过后退按钮)退出 Activity 时,我的应用程序崩溃了.据我所知,这发生在 Android 代码库中,而不是我的,但我并不完全相信这一点.
I am experiencing a crash in my app when I quit (via the back button) out of my Activity. So far as I can tell this is happening in the Android codebase and not mine, but I'm not completely convinced of that.
这是来自 adb 的堆栈跟踪:
Here's the stacktrace from adb:
有人有什么想法/建议吗?
Anyone have any ideas/recommendations?
推荐答案
帮不上什么忙,因为没有代码.还在看
Can't help much, as there's no code. Still looking at
引起:java.lang.NullPointerException atandroid.app.Activity.performStop(Activity.java:3575)
Caused by: java.lang.NullPointerException at android.app.Activity.performStop(Activity.java:3575)
我刚刚检查了 Activity.java
I just checked Activity.java
你确定所有的游标都被正确释放了吗?
Are you sure all cursors are released properly?
这篇关于为什么我在退出我的 Activity 时会崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!