You Are Here:

Community: Developer Discussion Boards

#1 Old Reading 1000 contacts from PIM - 2009-02-16, 13:37

Join Date: Jun 2006
Posts: 10
hithayath_sait
Offline
Registered User
Hello friends,

I am developing an application to retrieve contacts from PIM,

I am able to retrieve only 790 contacts from the contactlist.

more than that, i am getting out of memory error.

opening PIMList takes too much of time..

m_oContactList = (ContactList) PIM.getInstance().openPIMList(
PIM.CONTACT_LIST, PIM.READ_WRITE, str);



the above line of code hangs for long time.
Can anybody clarify me.

I tried with PDAPdemo that also gives out of memory error above trying to read 790 contacs.

Awaiting your replies..

Thanks and Regards,
Hithayath.
Reply With Quote

#2 Old Re: Reading 1000 contacts from PIM - 2009-02-16, 14:23

Join Date: Jan 2008
Posts: 533
Location: Amravati, India
arpit2agrawal
Offline
Super Contributor
Quote:
Originally Posted by hithayath_sait View Post
I am able to retrieve only 790 contacts from the contactlist.

more than that, i am getting out of memory error.
You should do the processing and free the "Contact" object before retrieving another. You can do this by just making ContactObject = null;

Quote:
Originally Posted by hithayath_sait View Post
opening PIMList takes too much of time..

m_oContactList = (ContactList) PIM.getInstance().openPIMList(
PIM.CONTACT_LIST, PIM.READ_WRITE, str);

the above line of code hangs for long time.
Can anybody clarify me.
This must be on emulator because it do some kind of indexing when you open PIM Contact List. But on real phone, this function would be executed very fast.
Reply With Quote

#3 Old Re: Reading 1000 contacts from PIM - 2009-02-17, 05:51

Join Date: Jun 2006
Posts: 10
hithayath_sait
Offline
Registered User
I had done setting object to null,

Thanks you very much.. i will try it on phone and see how it works..

Any other suggestions.?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Pim contacts in N78 Deepa msc Mobile Java General 4 2008-08-29 14:42
PIM API is giving exception or not reading any contact mobile_expert Mobile Java General 0 2008-04-25 16:29
Python script reading contacts blows up Symbian contact DB RaimondasL Python 6 2007-04-24 22:36
PIM API adding new contacts problem hoppelmoppel Mobile Java General 3 2007-04-22 18:12
Getting the few contacts using PIM bunty Mobile Java General 5 2006-12-22 23:38

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia