[Android] how to import android contacts in your application

A very simple way to search, select and import contact information from your phone (Android Contacts) to your android app is:

1) Send the specific android intent “ACTION_PICK”:

This intent will do for us and “for free” the operation of opening the contacts list and select the contact to import.

2) Simply manage the Intent result by reading the contact information through the resulting Content URI and access to the internal android database (SQLite):

Obviously it’s possible to customize the procedure in order, for example, to import all contacts or to get the list of all names and make a multiple selection before doing the contact import and so on…


Lascia un commento

Scoprite cosa possiamo fare per il vostro business
Tecnologie e Partner