Click here to Skip to main content
16,018,158 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
hi everyone, i'm trying to retrieve my contacts , using ContentResolver.query(..)
the problem is, i have like 5000 contacts, and when running, it runs out of memory, it's working fine though with something like 1000 contacts, what should i do


here is the code for the cursor

Java
final String[] CONTACT_PROJECTION = new String[] { Contacts._ID,
		Contacts.DISPLAY_NAME, };
ContentResolver cr = getContentResolver();

Uri contacts = Contacts.CONTENT_URI;
Cursor cur = cr.query(contacts, CONTACT_PROJECTION, null, null,
		Contacts.DISPLAY_NAME + " ASC");


thanks for ur help
Posted
Updated 27-Jul-12 3:37am
v2

1 solution

Go to setting
manage application
and click on one by one application and transfer it into the
card memory...

Don't forget to make sd card...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900