use of com.moez.QKSMS.common.vcard.ContactOperations in project qksms by moezbhatti.
the class MessageListFragment method openVcard.
private void openVcard(MessageItem messageItem) {
Log.d(TAG, "Vcard: " + messageItem.mBody);
VCard vCard = Ezvcard.parse(messageItem.mBody).first();
ContactOperations operations = new ContactOperations(mContext);
try {
operations.insertContact(vCard);
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations