O optimist Member Licensed User Longtime User Jul 4, 2011 #1 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? Code: Copy 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: Jul 4, 2011
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? Code: Copy 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
M mcmanu Active Member Licensed User Longtime User Jan 7, 2012 #21 Thx Thank you now i know what i have done wrong Thanks thats amazing Upvote 0