You can do something like this:
Cursor cursor = managedQuery(People.CONTENT_URI, null, null, null,
null);
if (cursor.moveToFirst()) {
do {
name = cursor.getString(cursor.getColumnIndex
(People.NAME)));
phoneNumber = cursor.getString(cursor.getColumnIndex
(People.NUMBER)));
} while (cursor.moveToNext());
}
--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.
On Jun 5, 12:26 pm, Meryl Silverburgh <[email protected]>
wrote:
> Hi,
>
> Can you please tell me how can I query all phone numbers of all
> Contacts in the Database?
> Where can I find some examples for that?
>
> Thank you.
> Regards,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---