hi all,
i am trying for an application which back up the contacts in tizen mobile ,here is my sample code , i exported the contacts to vcrd file .
when i click the vcard file it is showing only one contact , but i had exported 3 contacts
can any one figure out the error
AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
IList *pContactList = pAddressbookManager->GetAllContactsN();
String displayName;
Contact* pContact = null;
IEnumerator* pEnum = pContactList->GetEnumeratorN();
while (pEnum->MoveNext() == E_SUCCESS)
{
pContact = static_cast< Contact* >(pEnum->GetCurrent());
pContact->GetValue(CONTACT_PROPERTY_ID_DISPLAY_NAME, displayName);
AppLog("name of contact is %s",displayName.GetPointer());
}
pAddressbookManager->ExportContactsToVcard(*pContactList,L"/opt/storage/sdcard/1.vcf");
delete pEnum;
pContactList->RemoveAll(true);