Hi Romain, To follow up on this question, if the list is really big, so big that even 'what's needed to fill the screen with data' takes enougth time to generate a timeout, what to do?
I guess it could be populated by chunks, but it gets nasty I think... > You have to do the query in a background thread yourself. ListActivity > doesn't do any heavy work, only what's needed to fill the screen with > data. > > On Fri, Jan 23, 2009 at 3:55 AM, Miguel Paraz <[email protected]> wrote: >> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

