I am currently trying to create a ListView that is populated/updated with the local SQLite database. The SQLite database is currently being populated by an IntentService that is started by the BroadcastReceiver.
I was wondering what design patterns are used to implement something like this. I've heard that this can be accomplished with a ContentProvider and a CursorLoader, though I'm still not sure how the ContentProvider should interacts with the SQLite database or be updated of database changes.
The documentation on this topic seems to be somewhat lacking. I don't quite understand how that works. Does anyone know what the preferred design pattern for this would be? Thanks.
Aucun commentaire:
Enregistrer un commentaire