contactÂ’s access count
| Fri, 2006-05-05 12:56 | |
|
|
Hi ![]() what is contactÂ’s access count ? how can it be set to zero? actually i've to delete a contact from contact database altogether. for it i am using DeleteContactL(TContactItemId aContactId); but SDK says contact can't be removed altogether until its access count is zero. only contents will be removed...blank structure will be left there. so please tell me how can i set contact's access count to zero? or is there any other way to delete a contact altogether ?? Cheers!! CodePupil Thanks and Regards |







Forum posts: 286
Cheers,
Sri
Forum posts: 105
thanks for your quick reply ... but u didn't reply with a solution !!!
Cheers!!
CodePupil
Thanks and Regards
CodePupil
__________________________
You are I and I am he .. !!
Forum posts: 982
To solve this problem...i saw that some syncml clients use to close all apps that are handling access to contact db.
pirosl
Forum posts: 105
can you please tell me how can i delete a contact from contact DB as contacts app do ??
Cheers!!
CodePupil
Thanks and Regards
CodePupil
__________________________
You are I and I am he .. !!
Forum posts: 982
pirosl
Forum posts: 105
i want to delete my contact completely from database similarly Emulator's phonebook application do..
got it or not
Cheers!!
CodePupil
Thanks and Regards
CodePupil
__________________________
You are I and I am he .. !!
Forum posts: 982
You have 2 posibilities....either you close all app that are accesing contact db and then you delete you contact or the second solution...check if if the contact is not in use or wait till the contact is not in use..then delete it
pirosl
Forum posts: 286
Is there any API which gives list of apps which have a session connected to a particular DB?
I think there is no such API. In that case you need to close all running application (i dont think this is best way of doing).
Cheers,
Sri