You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
Hey! You didn't miss it. I just haven't added support for it yet haha. IMO, the current APIs should technically be enough to create a similar behavior even without this extra. I'm not familiar with this so I will have to do some research on it and play around with it to see how I can nicely add it on to the existing query APIs.
In any case, I will look into implementing this as part of a future release; 0.3.3
Thanks 😃
vestrel00
changed the title
EXTRA_ADDRESS_BOOK_INDEX_TITLES
Add support for EXTRA_ADDRESS_BOOK_INDEX[_COUNTS|_TITLES]
Apr 16, 2024
Thanks, I have been doing it on my own until I have noticed it in ContactsCotract. Creating sections by your self have so many gotchas. For example, Pinyin, Japanese or using phonetic name etc.
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
The text was updated successfully, but these errors were encountered: