Lines Matching refs:Contacts
17 package com.example.android.system.runtimepermissions.contacts;
45 * This Fragment is only used to illustrate that access to the Contacts ContentProvider API has
50 * This fragments demonstrates a basic use case for accessing the Contacts Provider. The
52 * https://developer.android.com/training/contacts-provider/retrieve-names.html
56 private static final String TAG = "Contacts";
64 private static final String[] PROJECTION = {ContactsContract.Contacts._ID,
65 ContactsContract.Contacts.DISPLAY_NAME_PRIMARY};
69 private static final String ORDER = ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + " ASC";
109 * Restart the Loader to query the Contacts content provider to display the first contact.
120 return new CursorLoader(getActivity(), ContactsContract.Contacts.CONTENT_URI, PROJECTION,
136 .getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
140 Log.d(TAG, "Total number of contacts: " + totalCount);
141 Log.d(TAG, "Total number of contacts: " + totalCount);
143 Log.d(TAG, "List of contacts is empty.");
155 * Accesses the Contacts content provider directly to insert a new contact.