Reading SIM Contacts on Symbian S60

I am looking for a working code fragment for the Symbian S60 5th edition, in which you can read the contact details of the SIM card.

If possible, I would skip using RPhoneBookSession , but if this is the only way, provide a code snippet of how to use it.

Thanks.

+4
source share
2 answers

What you need is an example of code from the corresponding chapter of Quick recipes on Symbian OS , which you can find here .

EDIT-1:

Should have carefully read the question.

The CContactDatabase API should seamlessly synchronize with your SIM RPhoneBookSession using RPhoneBookSession , so you don't need to.

To find out what is wrong, I would suggest calling RPhoneBookSession::GetLastSyncError , RPhoneBookSession::GetPhoneBookCacheState and RPhoneBookSession::GetSyncMode .

I also suggest doing all this before and after adding a new CContactICCEntry to the database yourself.

Of course, all this suggests that Nokia has not just brutally turned off phone book synchronization ...

EDIT-2:

If Nokia turned off Symbian phonebook synchronization, they might have replaced it with their own, which would mean that using the CPbkContactEngine::AllContactsView might give different results than the CContactDatabase approach.

Let's face it. If the Contacts application that came with your phone doesn’t even allow you to save the contact on the SIM card, Nokia may have removed all the options for interacting with the SIM card’s phonebook period.

EDIT-3:

You can try to develop against phbksyncsvr.lib using the binaries in the Product Development Kit (PDK) from the first real version Symbian Foundation operating system: Symbian ^ 2. Binary compatibility between versions of Symbian OS can sometimes help.

+2
source

This is not possible without the Nokia private API.

0
source

All Articles