Context context = getApplicationContext();
AppContactService appContactService = new AppContactService(context);
if (!appContactService.isContactExists("bdhameliya1"))
{
List<Contact> contactList = new ArrayList<Contact>();
Contact contact = new Contact();
contact.setUserId("adarshk");
contact.setFullName("John");
contact.setImageURL("R.drawable.couple");
contactList.add(contact);
Contact contactRaj = new Contact();
contactRaj.setUserId("krunal");
contactRaj.setFullName("krunal");
contactRaj.setImageURL("https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xap1/v/t1.0-1/p200x200/12049601_556630871166455_1647160929759032778_n.jpg?oh=7ab819fc614f202e144cecaad0eb696b&oe=56EBA555&__gda__=1457202000_85552414c5142830db00c1571cc50641");
contactRaj.setEmailId("krunal.kd@gmail.com");
contactList.add(contactRaj);
appContactService.addAll(contactList);
}
I tried out this way
my problem is when I used applozic SDK, default contact are list out, but I want my phonebook list and send message to that person