从联系人中读取时例外

时间:2010-11-03 08:49:41

标签: android exception android-contacts

我正在尝试编写一个例程,将联系人添加到我的Android手机的AddressBook中。我有以下例外情况:

D/dalvikvm(  784): GC freed 2736 objects / 171696 bytes in 71ms
E/IMemory (  784): binder=0x5b5248 transaction failed fd=-2147483647, size=0, err=-2147483646 (Unknown error: 2147483646)
E/IMemory (  784): cannot dup fd=-2147483647, size=0, err=-2147483646 (Bad file number)
E/IMemory (  784): cannot map BpMemoryHeap (binder=0x5b5248), size=0, fd=-1 (Bad file number)
E/JavaBinder(  784): *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
E/JavaBinder(  784): java.lang.RuntimeException: No memory in memObj
E/JavaBinder(  784): at android.database.CursorWindow.native_init(Native Method)
E/JavaBinder(  784): at android.database.CursorWindow.<init>(CursorWindow.java:518)
E/JavaBinder(  784): at android.database.CursorWindow.<init>(CursorWindow.java:27)
E/JavaBinder(  784): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:493)
E/JavaBinder(  784): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:496)
E/JavaBinder(  784): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:96)
E/JavaBinder(  784): at android.os.Binder.execTransact(Binder.java:287)
E/JavaBinder(  784): at dalvik.system.NativeStart.run(Native Method)

有人可以详细说明上述日志的含义吗?

2 个答案:

答案 0 :(得分:0)

哇,这太奇怪了。

我认为这不会有所帮助,但请查看:http://groups.google.com/group/android-developers/browse_thread/thread/33fd9e9f7bd43d26?fwc=1

灵光

答案 1 :(得分:0)

我只是在我的应用程序中解决了这个问题。问题在于关闭游标,如果你发布你的代码,我可以纠正它。

的Marius