1. You'll need at least AllFiles capabilities to access contact database directly on device. You should work with contact API provided by Symbian or J2ME
2. It should be possible using public API...
Type: Posts; User: pirosl; Keyword(s):
1. You'll need at least AllFiles capabilities to access contact database directly on device. You should work with contact API provided by Symbian or J2ME
2. It should be possible using public API...
Those contacts may be templates used in contact model on your device.
You can check if they are templates (using Type() method). Also please notice that system attribute is not used any more so...
Yep...no solution yet for this problem. Looks like a defect in S60/Symbian contacts code
That's because contact items are based on templates.
If target contact db has those templates, all contact item will have them (imported or not)
Lucian
For example:
const TUid KMyCustomField = {/*value*/}; //make sure this is not duplicate value - check cntdef.h for this
CContactItemField*...
Almost agree with you but you have to keep in mind that there is a circular include.
In one of the h file there must be only the forward declaration
Look what you have in that file
//includes
#include "DeviceInfoAppUi.h";
class CDeviceInfoAppUi;
.....
You make a declaration and a forward declaration. Let only the forward declaration
And InfoController.h?
Can you show us DeviceInfoAppUi.h ?
I assume the problem is there
It's possible to add your custom fields. Just create your custom type and that should be it.
Words of advise:
- custom fields will be recognized only in your app
- import / export will not work...
Yep...that should do the trick
How do you import those contacts?
At import time, successful imported contacts are stored in memory. But you can release that memory.
L
GUID is different from UID.
If you create contacts on your machine, thy probably have only uid.
If they are created on different platform, they will have a guid.
However, when contacts are...
You should use GUID when export / import
If you look at method signature you have
CArrayPtr<CContactItem>* ImportContactsL(......)
So everytime you import, an arroy of contact items is created and its ownership passed to you.
Do you...
You won't have access to source code in the next month or so (see this announce http://blog.symbian.org/2009/04/01/the-first-hardware-reference-design/). Didn't have time to check the example you...
Yep...I think the problem is with contact ids
How do you get the id used in contactDB->ReadContactLC(id)?
L
What sdk version do you use?
Another aproach to this problem would be to read owncard from your contact database (though not all users / phone set that)
I think the problem is this: contact database is not updated at the moment you try to read contact from it (even if the persistent db was updated). To check this listen for database events and see...
Can you check what's the value of TContactItemId id?
L
To be honest, I think this is a problem in contact app not in contact engine. May be contact app should take in consideration only default db. Other people would say that it should consider all db. I...
Yep, that's right....starting from 9.0 onward you can't create db in other places than private contact model private directory.
Unfortunatelly you can't replace default db as well since default db...
I think directories have to be created already.
Try first with _LIT( KOrgContactFile,"C:\\privatecontact.db" );