Solved
Use a MatrixCursor instead of a CrossProcessCursor.
This will allow you to send custom data in a Cursor object over a
ContentProvider, and works across the process boundary.

Example code:

public class TestContentProvider extends ContentProvider {
        public Cursor query(Uri uri, String[] arg1, String selection, String
[] selectionArgs, String sortOrder) {
                String[] columnNames = new String[2];
                columnNames[0] = "col1";
                columnNames[1] = "col2";
                MatrixCursor cursor = new MatrixCursor(columnNames);

                String[] columnValues = new String[2];
                columnValues[0] = "ServiceName";
                columnValues[1] = "2";
                cursor.addRow(columnValues);

                return cursor;
                }

                ...other required methods..
        }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to