Passing a cursor to an activity?

前端 未结 3 1242
一生所求
一生所求 2021-01-07 02:12

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

3条回答
  •  广开言路
    2021-01-07 02:46

    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).

提交回复
热议问题