tags:

views:

23

answers:

2

Is this possible? I am trying to open a SQLite database cursor in one activity, and pass it to another activity.

+1  A: 

I personally don't know of any simple ways to do this. It might be easier just to make the query again in the destination activity.

Tyler
I ended up doing this. Would've been prettier to be able to pass the cursor though.
dfetter88
A: 

You should write your own Cursor which will implement Parcelable interface. In this case you can put your cursor to parcel and send it to another Activity through putExtra(). In target Activity you can explode (in fact just find it through handler) Cursor through one of Parcel methods (related to Binder).

barmaley