Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对查询进行排序的关键字是什么以及如何使用它
光标 cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
只需使用 ASC 或 DSC 作为 getContentResolver().query(......) 的最后一个参数;它将相应地对获取数据进行排序。您还可以使用 orderBy 和其他与 SQL 相同的排序方法