Skip to content Skip to sidebar Skip to footer

Contentprovider (contacts) - No Such Column: Metadata_dirty

I'm trying to get all contacts of a specific type from the phone like following: Cursor cursor = context.getContentResolver().query( ContactsContract.RawContacts.CONTEN

Solution 1:

I don't see anything wrong with your query, it seems like this is an internal bug in the user's custom ROM.

METADATA_DIRTY is a new column in Android N: https://developer.android.com/reference/android/provider/ContactsContract.RawContactsColumns.html#METADATA_DIRTY

So it seems like the system is Nougat, but the Contacts DB is based on an older version of Android.

Post a Comment for "Contentprovider (contacts) - No Such Column: Metadata_dirty"