I have a Cursor which is generated in a separate process as part of a content provider query(). I want to return this cursor back to the UI. Since I am using AIDL for the communication between the content provider and the separate process, it is not possible to define the cursor in the AIDL file because it does not implement the Parcelable interface. How can I solve the issue?
Jainish CS
I did not find any direct way to solve this Issue.But what I did was via DataUtils we can get the rows from the cursor add to a list.this List I have passed to the ContentProvider.The contentProvider creates a MatrixCursor and converts to Cursor and send back to the UI. There could have been a better solution If able to read the raws[] from the CursorWindow.