You can easily find the contact list with the information like phone number, contact name, email address and birthday from Android devices by simply using PhoneGap.
Following steps expalin how to use Phonegap to get the contact information.
1.Include the Phonegap/Cordova javascript file inside your html page.
2.Add the eventlistner to load the function when device gets ready.
document.addEventListener(“deviceready”, getContactList, false);
3.Create a function to get the contact list from the device database.
function getContactList() { var contactList = new ContactFindOptions(); contactList.filter=""; contactList.multiple=true; var fields = ["*"]; //"*" will return all contact fields navigator.contacts.find(fields, getContactFields, contactList ); }
4.Create a function to display the contact information.
function getContactFields(contacts) { for (var i=0; i