Lib Phone / Contacts

optimist

Member
Licensed User
Longtime User
From where do you get the Contact.Id in the phone-lib?

If i do a simple query (code like below) then i get other Id's. I can not imagine why. Do you have an idea?

B4X:
Uri person = ContactsContract.Contacts.CONTENT_URI;
String[] projection = new String[] {
   ContactsContract.Contacts.DISPLAY_NAME,
   ContactsContract.Contacts._ID
   };
Cursor cur = ba.activity.managedQuery(person, projection, null, null, null);

Reason for the question:
I wrote an lib to extend your contact related functions (for example: access adresses of a contact). But with different Id's its hard to coordinate.
Could you please explain how you get the contact-Id's in your phone lib?

Thanks
 
Last edited:
Top