I want to implement Cursor so that it wraps another Cursor (probably
MatrixCursor) and can swap out the wrapped Cursor as necessary.

I've tried two approaches:

1. Subclass CursorWrapper. The problem with this is that any calls to
registerX/unregisterX methods land on the wrapped cursor. Therefore,
instead, the wrapping cursor needs to maintain these observers and how
they are notified. This gets messy.

2. Subclass AbstractCursor and override some methods to actually get
the data from another cursor (the MatrixCursor). This is also tricky
because you are trying to juggle two cursors as one. This just feels
*wrong*.

Any thoughts?

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