When using a LoaderManager, do I still manage my database writes the way I have in the past and let the Loader pick up the changes? I am in the process of converting and adding functionality to an app and I am still getting used to the Android platform.
Share
If you are using
CursorLoader, and you do all your database updates via theContentProvideryou used withCursorLoader, the loader and itsCursorwill be notified of changes, so everything will be handled for you.If you are not using
CursorLoader, it is your responsibility to somehow update your ownCursor. For example, my LoaderEx project has aSQLiteCursorLoaderthat works directly with aSQLiteOpenHelper, and it offersinsert(),update(),delete(), andexecSql()methods on the Loader, so we can update the Cursor accordingly.