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);
}
我试过这种方式
我的问题是当我使用 applozic SDK 时,默认联系人已列出,但我想要我的电话簿列表并向该人发送消息