Thanks. If you find any hint in the standard that EXDATE should always have the same time zone as DTSTART (what if DTEND has a different one?), please let me now 🙂
Query contacts independently of Account using AndroidAddressBook
I would like to query the list of
AndroidContactusing a subclass of
AndroidAddressBook, but independent of any associated
Account, like so.
val contacts = myAddressBook.queryContacts(null, null)
Now this is very difficult because account name and type are set in final method
AndroidAddressBook.syncAdapterURI(Uri), that many parts of that functionality rely on.
I would love this method to either be
openor have the address book support another way to perform
Accountindependent operations. A simple
openwould allow me to change the functionality like so, giving me exactly the results I need.
override fun syncAdapterURI(uri: Uri) = uri
What are your thoughts?
AndroidAddressBookis designed to access raw contacts, which should always be bound to an account.
Do you want to access contacts or raw contacts? What is your use case?
I misunderstood indeed. I was in fact looking for the device’s (default) account name and type that stores local accounts. I solved this issue now. Thank you!