我正在嘗試編寫一個將聯繫人添加到我的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)
任何人都可以詳細說明上述日誌是什麼意思?
請注意pid:784是聯繫人聚合的進程ID。 – 2010-11-03 12:57:26
您如何確定聯繫人聚合的pid? – mobibob 2011-04-21 16:51:38
我將日誌追溯到ddms中的原點。 – 2011-04-21 17:39:50