hello dinesh and wizard....
i am looking for the same thing also...
i have used some apis like.
Code:
TContactItemId itemid = iContactDb->GetCurrentItem();
iContactDb is the default database.
here i am getting the -1 itemid value....I am unable to understand from the sdk what exactly iContactDb->GetCurrentItem() does.
and
Code:
TContactItemId ownCardId = iContactDb->OwnCardId();
CContactItem* contact = NULL;
contact = iContactDb->ReadContactL(ownCardId);
int indexvalue = contact->CardFields().Find(KUidContactFieldGivenName);
it freeze on line contact = iContactDb->ReadContactL(ownCardId);
i am cofused according to the sdk it should work for getting the current contact item.
please be helpfull for me ....
what the above apis does ..is they are used for the same purpose or they do something else...???