Hi,
I need to load Contacts.Phones.CONTENT_URI and
Contacts.ContactMethods.CONTENT_EMAIL_URI into a ListActivity.

Since these are separate Content URIs, I have two separate cursors and
can't construct a SimpleCursorAdapter for use in the ListActivity.

The problem is that I have more than a thousand records for
CONTENT_EMAIL_URI, which were automatically loaded by GMail. The app
becomes unresponsive and Android prompts to kill the app or wait.

Is there a way to make the ListActivity content load in the
background, like, by writing a custom implementation of
android.widget.Adapter?

Or is it more feasible to use a single cursor, by manually running the
SQL query on the contacts tables?

Thanks!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to