I have a button in a listview that needs to update the db on clicking. So I have to place the OnClickListener in the bindView method of the CursorAdapter class. So, I cannot invoke
int rowsAffected = getContentResolver().update(mCurrentPetUri, values, null, null);
Since its a static context, I cannot use Context.getContentResolver() also.
Is there a workaround ?