Skip to content

Add support for EXTRA_ADDRESS_BOOK_INDEX[_COUNTS|_TITLES] #348

Description

@NLLAPPS

Not sure if I am missing it but android provides Section indexer for contacts so that you can show sections per letter in contact list.
It might be be good to include it in the library.

val uriWithContactIndexes = ContactsContract.Data.CONTENT_URI.buildUpon()
.appendQueryParameter(ContactsContract.Contacts.EXTRA_ADDRESS_BOOK_INDEX, "true")
.build()

https://cs.android.com/android/platform/superproject/main/+/main:packages/apps/Contacts/src/com/android/contacts/list/ContactsSectionIndexer.java

https://developer.android.com/reference/android/provider/ContactsContract.Data#EXTRA_ADDRESS_BOOK_INDEX_TITLES

https://android.googlesource.com/platform/cts/+/c35d791/tests/tests/provider/src/android/provider/cts/ContactsContract_ContactCountsTest.java

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions