contactÂ’s access count

Login to reply to this topic.
Fri, 2006-05-05 12:56
Joined: 2006-01-09
Forum posts: 105
Hi Smiley

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
CodePupil
__________________________
You are I and I am he .. !!


Fri, 2006-05-05 12:59
Joined: 2004-05-21
Forum posts: 286
Re: contactÂ’s access count
could be that some other app(may be contacts app) is open and accessing the db/record.

Cheers,
Sri
Fri, 2006-05-05 13:05
Joined: 2006-01-09
Forum posts: 105
Re: contactÂ’s access count
Hi Smiley

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 .. !!

Fri, 2006-05-05 13:12
Joined: 2004-05-24
Forum posts: 982
Re: contactÂ’s access count
You can't set access count to zero. The access count is used to check how many apps are using (open for read/change/delete) that contact.
To solve this problem...i saw that some syncml clients use to close all apps that are handling access to contact db.

pirosl

Fri, 2006-05-05 13:22
Joined: 2006-01-09
Forum posts: 105
Re: contactÂ’s access count
Thanks Pirosl for your such a quick reply....

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 .. !!

Fri, 2006-05-05 13:35
Joined: 2004-05-24
Forum posts: 982
Re: contactÂ’s access count
don't understand what you are asking  Sad

pirosl

Fri, 2006-05-05 13:50
Joined: 2006-01-09
Forum posts: 105
Re: contactÂ’s access count
Hi

i want to delete my contact completely from database similarly Emulator's phonebook application do..

got it or not Huh



Cheers!!
CodePupil

Thanks and Regards
CodePupil
__________________________
You are I and I am he .. !!

Fri, 2006-05-05 14:15
Joined: 2004-05-24
Forum posts: 982
Re: contactÂ’s access count
You can't if other app currently access that contact. Is the concurent access principle. The phonebook app does the same thing.
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

Mon, 2006-05-08 06:39
Joined: 2004-05-21
Forum posts: 286
Re: contactÂ’s access count
It is the contact engine which maintains the access count and others cannot change the value.

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
  • Login to reply to this topic.