Cursor window could not be created from binder

后端 未结 3 585
有刺的猬
有刺的猬 2021-01-01 15:18
1 Cursor cursor = contentResolver.query(MY_URI, new String[] { \"first\" }, null, null, null);
2 if (cursor != null) {
3   if (cursor.moveToFirst()) {
4       first          


        
3条回答
  •  隐瞒了意图╮
    2021-01-01 16:09

    Try another thread

    new Thread(new Runnable(){ public void run(){
    
    ...here all code
    
    }});
    

    . But by Android SDK source codes look like 4.0.2_r1

    130  private CursorWindow(Parcel source) {
    131 mStartPos = source.readInt();
    132 mWindowPtr = nativeCreateFromParcel(source);
    133 if (mWindowPtr == 0) {
    134 throw new CursorWindowAllocationException("Cursor window could not be "
    135 + "created from binder.");
    136 }
    137 mName = nativeGetName(mWindowPtr);
    138 mCloseGuard.open("close");
    139 }
    where mWIndowPtr is Int

提交回复
热议问题