I need to fill an array adapter from a cursor.
So I create the cursor, loop through it, read two columns from it and make a new string out of it, then add it to the adapter. This works, for certain values of "work", but it works about ten thousand times slower than I expect. On my coworker's phone, it takes 16 seconds to read maybe fifty contacts.
Why?
Code:
Cursor cursor = getContentResolver().query(Contacts.CONTENT_URI,null, null, null, Contacts.DISPLAY_NAME);
So I create the cursor, loop through it, read two columns from it and make a new string out of it, then add it to the adapter. This works, for certain values of "work", but it works about ten thousand times slower than I expect. On my coworker's phone, it takes 16 seconds to read maybe fifty contacts.
Why?