sim card - How to get all android contacts but without those which are on SIM -
it possible in 1 query?
as far know content uri of sim contacts content://icc/adn
this easy! :)
cursor cursor = mcontentresolver.query( rawcontacts.content_uri, new string[]{rawcontacts._id,rawcontacts.account_type}, rawcontacts.account_type + " <> 'com.anddroid.contacts.sim' " + " , " + rawcontacts.account_type + " <> 'com.google' " //if don't want google contacts , null, null);
Comments
Post a Comment