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.
source share