This method is working only for access through getContentResolver(). It should work for both getContentResolver() and getContentProvider(). Please, be careful with this point.