зеркало из https://github.com/mono/mail-archives.git
130 строки
4.9 KiB
HTML
130 строки
4.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [mono-android] android.database.StaleDataException OnResume
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20android.database.StaleDataException%20OnResume&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="008004.html">
|
|
<LINK REL="Next" HREF="007990.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[mono-android] android.database.StaleDataException OnResume</H1>
|
|
<B>riteshsahu</B>
|
|
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20android.database.StaleDataException%20OnResume&In-Reply-To="
|
|
TITLE="[mono-android] android.database.StaleDataException OnResume">rsahu at epicor.com
|
|
</A><BR>
|
|
<I>Mon Dec 19 22:12:44 EST 2011</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="008004.html">[mono-android] Cannot get Hello World to work...
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007990.html">[mono-android] Failure to package/build with generic class inheriting from JavaList<T>
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7976">[ date ]</a>
|
|
<a href="thread.html#7976">[ thread ]</a>
|
|
<a href="subject.html#7976">[ subject ]</a>
|
|
<a href="author.html#7976">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Hi,
|
|
We are getting this error at times when the app gets resumed after picking
|
|
up a picture from the picture gallery on on a Galaxy Nexus (4.0.1).
|
|
We don't have an override for the OnResume method on the activity.
|
|
Is this something wrong with Android 4.0.1 or something in M4A?
|
|
|
|
Thanks.
|
|
Ritesh
|
|
|
|
|
|
E/AndroidRuntime(8371): FATAL EXCEPTION: main
|
|
E/AndroidRuntime(8371): java.lang.RuntimeException: Unable to resume
|
|
activity {Test.Android/test.android.MainActivity}:
|
|
android.database.StaleDataException: Attempted to access a cursor after it
|
|
has been closed.
|
|
E/AndroidRuntime(8371): at
|
|
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2443)
|
|
E/AndroidRuntime(8371): at
|
|
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2471)
|
|
E/AndroidRuntime(8371): at
|
|
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1172)
|
|
E/AndroidRuntime(8371): at
|
|
android.os.Handler.dispatchMessage(Handler.java:99)
|
|
E/AndroidRuntime(8371): at android.os.Looper.loop(Looper.java:137)
|
|
E/AndroidRuntime(8371): at
|
|
android.app.ActivityThread.main(ActivityThread.java:4340)
|
|
E/AndroidRuntime(8371): at java.lang.reflect.Method.invokeNative(Native
|
|
Method)
|
|
E/AndroidRuntime(8371): at java.lang.reflect.Method.invoke(Method.java:511)
|
|
E/AndroidRuntime(8371): at
|
|
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
|
|
E/AndroidRuntime(8371): at
|
|
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
|
|
E/AndroidRuntime(8371): at dalvik.system.NativeStart.main(Native Method)
|
|
E/AndroidRuntime(8371): Caused by: android.database.StaleDataException:
|
|
Attempted to access a cursor after it has been closed.
|
|
E/AndroidRuntime(8371): at
|
|
android.database.BulkCursorToCursorAdaptor.throwIfCursorIsClosed(BulkCursorToCursorAdaptor.java:75)
|
|
E/AndroidRuntime(8371): at
|
|
android.database.BulkCursorToCursorAdaptor.requery(BulkCursorToCursorAdaptor.java:144)
|
|
E/AndroidRuntime(8371): at
|
|
android.database.CursorWrapper.requery(CursorWrapper.java:182)
|
|
E/AndroidRuntime(8371): at
|
|
android.app.Activity.performRestart(Activity.java:4505)
|
|
E/AndroidRuntime(8371): at
|
|
android.app.Activity.performResume(Activity.java:4531)
|
|
E/AndroidRuntime(8371): at
|
|
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2433)
|
|
E/AndroidRuntime(8371): ... 10 more
|
|
|
|
|
|
--
|
|
View this message in context: <A HREF="http://mono-for-android.1047100.n5.nabble.com/android-database-StaleDataException-OnResume-tp5087831p5087831.html">http://mono-for-android.1047100.n5.nabble.com/android-database-StaleDataException-OnResume-tp5087831p5087831.html</A>
|
|
Sent from the Mono for Android mailing list archive at Nabble.com.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="008004.html">[mono-android] Cannot get Hello World to work...
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007990.html">[mono-android] Failure to package/build with generic class inheriting from JavaList<T>
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7976">[ date ]</a>
|
|
<a href="thread.html#7976">[ thread ]</a>
|
|
<a href="subject.html#7976">[ subject ]</a>
|
|
<a href="author.html#7976">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
|
|
mailing list</a><br>
|
|
</body></html>
|