I use CursorLoader to track data in a database. This database can be deleted using
Context.deleteDatabase(databaseName);
After uninstalling, I reboot the bootloader with
getLoaderManager().restartLoader(LOADER_ID, null, this);
Now when i get the callback
onLoadFinished(Loader<Cursor> loader, Cursor data)
it does not reflect that the data has disappeared. I get the same data as before.
Am I doing something conceptually wrong?
source share