All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 17-03-2005, 10:00 AM
shashi_blr shashi_blr is offline
Registered User
 
Join Date: Dec 2004
Posts: 15
shashi_blr is on a distinguished road
Angry Couldn't able to add contacts.....

HI,

I am writing series 80 application.
When my application is launched I am trying to read the contacts from the
default contact database and copy them to MyContactDatabase(KMyFile).
Reading from the default contact database is OK.
But when i try to Add that contact to MyDataBase application is Hanging.(temp = iSrc->AddNewContactL(*itemold)

It gives System Error:: System Not Ready...


_LIT(KMyFile,"\\system\\data\\Contactsuti.cdb");

iDest =CContactDatabase::OpenL ();
CleanupStack::PushL (iDest);
iSrc = CContactDatabase::OpenL (KMyFile);
CleanupStack::PushL (iSrc);
CContactItem* itemold;
TContactItemId oldcard,temp;
TContactIter clean(*iDest);


while( ( oldcard = clean.NextL() ) != KNullContactId )

{

TRAPD(err, (itemold = iDest->ReadContactL(oldcard)));
if(err == KErrNotFound)
{
itemold = NULL;
continue;

}

CleanupStack::PushL(itemold);

temp = iSrc->AddNewContactL(*itemold);

iSrc->CloseContactL(temp);

iDest->DeleteContactL(oldcard);

CleanupStack::Pop();
delete itemold;
itemold = NULL;

}


What could be the problem?
Plaease guide me if someone have the answers..

Thanks ion advance
Shashi
Ads
 

Bookmarks

Tags
add, contacts

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help - problems syncing with Outlook Aero Sony Ericsson P800, P900 and P910 12 31-12-2004 10:16 AM
READ THIS for PALM > P800 CONTACTS MIGRATION INSTRUCTIONS marcnyc Sony Ericsson P800, P900 and P910 12 23-11-2004 10:49 AM
Question on Contacts with the flip up? johnniechan Sony Ericsson P800, P900 and P910 1 28-02-2003 03:52 PM
Memory and Contacts Nokia 7650 0 29-01-2003 02:23 AM
Custom colors! Nokia 9210 and 9290 23 17-10-2001 10:29 AM



All times are GMT. The time now is 09:56 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy