开发者

Exception when reading from Contacts

开发者 https://www.devze.com 2023-01-23 11:11 出处:网络
I am trying to write a routine that adds Contacts to my Android phone\'s AddressBook. I am getting the following exceptions:

I am trying to write a routine that adds Contacts to my Android phone's AddressBook. I am getting the following exceptions:

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开发者_Python百科 Method)

Can anyone detail on what the above logs mean?


Wow that's a weird one.

I don't think this will help but check it out: http://groups.google.com/group/android-developers/browse_thread/thread/33fd9e9f7bd43d26?fwc=1

Emmanuel


I just fix this problem in my application. The problem is with closing the cursors, if you post your code I can correct it.

Marius

0

精彩评论

暂无评论...
验证码 换一张
取 消