I need to pass a Cursor object from one android emulator to another. But when I try to serialize it, I am getting a “NotSerialiableException: android.database.sqlite.SQLiteCursor” error.
I know that one way to handle this is to tear down to serializable classes & serialize (on one emulator), de-serialize & rebuild the Cursor object (on another emulator).
Is there no other way to do this? I was looking at Parcelable and I am not so sure if this is what I want. Any pointers will be greatly appreciated!
There’s not a chance in hell that that’ll work. A cursor is basically a view of the contents of your database.
What are you trying to do exactly? How are you trying to pass the data between emulators? You’re probably going to want to put the data from the cursor into something that IS serializable, like a map.