Android application with phone book synchronization?
I am creating one android test application , in which i have one button. On button click ,i want to synchronize phonebook records with my local database.If record in phone book is not in db table then insert it , otherwise leave it as it is. so how can i do this? For getting contact list from your phone book you need write permission in AndroidManifest.XML (i.e. android.permission.READ_CONTACTS ) .And you can collect contact list using following method. ShowContact() { ArrayList<String> nameList; ArrayList<String> phoneNoList; ContentResolver cr = getContentResolver(); Cursor cur = cr.query