I read many posts telling long operations (like reading DB) should not be excuted on the main Thread.
So far I used CursorLoader
(for "reading" ContentResolver
) andAsynkTaskLoader
(for "reading" my own SQLite DB).
I know to perform Insert
, Delete
and Update
"on" ContentResolver
I can use AsyncQueryHandler
.
My question is: what's the best way to execute Insert
, Delete
and Update
on my own SQLite db??
Should I simply execute those operations inside the method loadInBackground()
of AsyncTaskLoader
?
Thank you