I’m using GreenDAO in my current app, and want to have a LoaderManager with a connection to the DB in order to monitor changes and updates on the DB on the fly.
I’ve seen in the Android documentation that it’s not recommended to use a ContentProvider when your app has only an internal SQLite DB (which is what I have) however, I really want to implement the Observer Pattern in order to change the UI in real time according to the updates in the DB.
I’ve noticed that in order to use the LoaderManager, I need to give a URI for the CursorLoader.
My question is, is there some sample code anywhere using this?
how can I create a LoaderManager for a Green-DAO?
You don’t use ContentProvider and Loaders with greenDAO. At this time, those technologies do not intersect.