Ok, I found a solution, it seems like a solution, but it works. In my research, all the problems seemed to be related to the problem after Honeycumb, so I changed the API level to 11 to get swapCursor, and then in my code:
Cursor[] cursors = new Cursor[2]; //actual cursor cursors[0] = resourceAdapterCursor.getCursor(); //new cursor returned by async task cursors[1] = result; MergeCursor mergeCursor = new MergeCursor(cursors); if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.GINGERBREAD){ resourceAdapterCursor.swapCursor(mergeCursor); } else { resourceAdapterCursor.changeCursor(mergeCursor); }
Thanks!
Sincerely. Rodrigo
source share