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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -