I know this has been discussed, but I wanted to ask about the current state of affairs. Do I need to create a ContentProvider to use CursorLoader in connection with the sqlite database?
I found
Using CursorLoader without ContentProvider
Looks exactly what I was hoping for while commenting on Emmby
- Users should be aware of one limitation, which is that it does not have a mechanism for updating when data changes (Loaders are supposed to be executed)
So another solution is mentioned
https://github.com/commonsguy/cwac-loaderex
again some flaw is indicated
- However, to use automatic re-query, you need to use the same bootloader for the user interface as well as for 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, is there a way to use LoaderManager in connection with the sqlite database without the need to implement a content provider, but there are all the benefits.
thank
android android-contentprovider sqlite android-loadermanager
dorjeduck Oct 13 '12 at 2:16 2012-10-13 02:16
source share