Reputation: 3215
I've a listview with a cursoradapter. I've also a SQLite database. Here is my question: Is it possible that the auto-update works only with a ContentProvider and not with SQLite only?
Upvotes: 0
Views: 110
Reputation: 1006744
Cursors
are never updated, automatically or otherwise. They are not modified due to changes in wherever the Cursor
came from.
If you are using the loader framework, with CursorLoader
, then you will get a fresh Cursor
delivered to you when data changes, if:
ContentProvider
, andContentProvider
is written to support ContentObservers
However:
Cursor
than before, requiring you to pass that to your CursorAdapter
Cursors
(e.g., SQLite queries, MatrixCursor
)ContentProvider
by other means (e.g., query()
on a ContentResolver
)Upvotes: 1