>  (You can be sure to not keep open access on providers, if you are keeping
> them open for a long time, so the system has some other process to kill
> that
> you don't need right then.)

Two questions here:

1. How do you close a content provider? Just by closing all open Cursors
you got from it, or is there some other mechanism? I do not see anything
on ContentResolver that feels like a "close" operation.

2. I suspect some apps do not need to keep their content providers open,
but do need the Cursor data for an indefinite period (e.g., it's in a
CursorAdapter in a ListView, and who knows how long the user will sit
there). The deactivate() method *may* allow the content provider to go
away, but it takes the data with it. Is there a convenient means to clone
a Cursor into a local-only copy, one that allows the content provider to
close up shop but leaves the Cursor data intact?

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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