mercredi 30 mars 2016

How does the onLoadFinished callback get a cursor?

How does the onLoadFinished(Loader cursorLoader, Cursor cursor) callback method receive a cursor?

Also, what's the standard way to not receive a stale cursor after changes to the data source? Most recently, I've used: getLoaderManager().restartLoader(FORECAST_LOADER, null, this);

Not sure if using restartLoader() is the correct way.

Aucun commentaire:

Enregistrer un commentaire