Well, if I understand what you are looking for. You want to use your own Android contact list. If so, follow these steps:
- fire goal for result
- get the intention to get the result code search result.
- return cursor with contact information
- set values.
A brief example. fire intent
Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,ContactsContract.CommonDataKinds.Phone.CONTENT_URI); startActivityForResult(contactPickerIntent, CONTACT_PICKER_RESULT);
Here is an example of a cursor call. Please read a few more about the contact cursor in android docs.
email = emailCursor.getString(emailCursor.getColumnIndex(ContactsContract.CommonDataKinds.Email.DATA));
Hackermaker36
source share