Search in sources :

Example 1 with ContactOperations

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();
    }
}
Also used : ContactOperations(com.moez.QKSMS.common.vcard.ContactOperations) VCard(ezvcard.VCard) SQLiteException(android.database.sqlite.SQLiteException)

Aggregations

SQLiteException (android.database.sqlite.SQLiteException)1 ContactOperations (com.moez.QKSMS.common.vcard.ContactOperations)1 VCard (ezvcard.VCard)1