Tuesday, 13 August 2013

Android cursorLoaders and getContentResolver()

Android cursorLoaders and getContentResolver()

I'd like to understand a concept with cursors. After i initialize a
cursorLoader and it returns a cursor i then run this command when i want
to delete the entire table ( i could have deleted a specific value but etc
etc for example sake) and its executed on the main thread:
getContentResolver().delete(Consts.CONTENT_URI,
null, null);
im wondering if this impacts the UI thread. should the delete be run on a
seperate thread or does it automatically do it in the background ?
otherwise wahts the point of getting the cursor and then when your doing
work on it its still on the users thread

No comments:

Post a Comment