Put the results in ascending order by name PeopleName Asc

This query retrieves data from the People table of the Contacts content provider. It gets the name, primary phone number, and unique record ID for each contact. It also reports the number of records that are returned as the COUNT field of each record.

The constants for the names of the columns are defined in various interfaces — ID and COUNT in BaseColumns, NAME in PeopleColumns, and NUMBER in PhoneColumns. The Contacts.People class implements each of these interfaces, which is why the code example above could refer to them using just the class name.

0 0

Post a comment