How to obtain a contact list without contacting the SIMDER?
So far my cursor looks like this
public final static URI CONTENT = ContactsContract.CommonDataKinds.Phone.CONTENT_URI; Public Final Static String ID = Contact Contact CommonDirects phone. CONTACT_ID; Public Final Static String NAME = Contact Contact CommonDayind phone. DiGray; Public Final Static String NUMBER = Contact Contact CommonDirects Phone. NUMBER; Public Last Fixed String PHOTO_URI = Contact Contact. CommonDirects Photo. PHOTO_URI; Public Last Stable String = Contact Contact. CommonDayind phone. STARRED; String mSelectionClause = NAME + "IS NULL"; MOrderBy = NAME + "COLLATE LOCALIZED ASC"; Cursor cursor = getActivity (). GetContentResolver () Query (content, blank, mSelectionClause, blank, Moderabee);
What should I add in the query to delete the SIM contact with the result?
I have found that
Private Final String Upgrade Sim = Contract .row Contact ACCCOUNT_TYPE + "& lt;> Com.android.contacts.sim 'and" + contact contact. Contact the ROC. ACCCOUNT_TYPE + "& lt; & gt; ' Com.anddroid.contacts.sim 'and "// HTC + contact contact. ROC contact .ACCOUNT_TYPE + "& lt; & gt; Vnd .sec.contact.sim 'and "+ contact contact. Racism .ACCOUNT_TYPE + "& lt; & gt; USIM account '"; ... string mSelectionClause = NAME + "tap and" + exclusion;
Comments
Post a Comment