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!
>
>
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to