the code as follow:
****************************************************************
CPbkContactItem* newItem = iContactEngine->CreateEmptyContactL();
CleanupStack::PushL(newItem);
// Update personal information
_LIT(KFirstName,"chao2");
_LIT(KLastName,"Li");
_LIT(KMobilePhone,"1348442051");
TPbkContactItemField* field = newItem->FindField(EPbkFieldIdFirstName);
field->TextStorage()->SetTextL(KFirstName);
field = newItem->FindField(EPbkFieldIdLastName);
field->TextStorage()->SetTextL(KLastName);
field = newItem->FindField(EPbkFieldIdPhoneNumberMobile);
field->TextStorage()->SetTextL(KMobilePhone);
// add the new contact to the phone book.
TRAPD(error, iContactEngine->AddNewContactL(*newItem));
CleanupStack::PopAndDestroy(newItem);
****************************************************************
error occur when using AddNewContactL, the error code is -23.
Anyone give some help?
thanks!




