KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I know this has been discussed yet I wanted to ask about the current state of the matter. Do i have to create a ContentProvider to use CursorLoader in connection with a sqlite database? I found CursorLoader usage without ContentProvider Looks exactly what I was hoping for yet as Emmby commented Users should be aware of one limitation, which is that it has no mechanism to refresh on data changes (as Loaders are supposed to do) So another solution is mentioned https://github.com/commonsguy/cwac-loaderex yet again some drawback is pointed out However, to make use of the automatic re-querying, you need to use the same loader for the UI as well as for the updates, limiting its usability for background services. Of course when using LoaderManager we want to get all the benefits for which it was introduced. So my question is if there is a way to use LoaderManager in connection with a sqlite database without having to implement a content provider yet have all the benefits of it. Thanks
Tags (comma-separated)
Save Edits
Cancel