Why Am I Getting A Crash When Exiting My Activity?
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 c
Solution 1:
Can't help much, as there's no code. Still looking at
Caused by: java.lang.NullPointerException at android.app.Activity.performStop(Activity.java:3575)
I just checked Activity.java
finalintN= mManagedCursors.size();
for (int i=0; i<N; i++) {
ManagedCursormc= mManagedCursors.get(i);
if (!mc.mReleased) {
mc.mCursor.deactivate(); // line 3575
mc.mReleased = true;
}
}
Are you sure all cursors are released properly?
Solution 2:
Excellent explanation of what's going on inside during this situation: http://www.jjoe64.com/2011/06/how-to-fix-activityperformstop.html
Solution 3:
In your Activity before startManagingCursor() method is called , your Cursor is null. Dont let the Cursor be null.
Post a Comment for "Why Am I Getting A Crash When Exiting My Activity?"