android - Can someone explain ContactsContracts? -


i'm relatively new android , programming in general , i'm practicing trying make app emulates contacts/people app (show contacts). i've spent time doing research , i'm having trouble understanding how contactscontract work.

i'm not understanding how access contacts information, example emails, phone numbers , addresses. know can contact _id or lookup_key (not sure better) contactscontract.contacts compiled information particular aggregated contact mean have go through raw contacts associated it. seems inefficient , complicated. there way access information 1 spot example "contactscontract.contacts.data.(data associated aggregated contact)"?

on side note, possible modify data (i.e adding new phone number or removing email) directly "contactscontract.contacts.data" table if exists? have done little no research on adding information contacts may easy , have no clue, thought i'd ask while i'm here.

simple example of contactscontract api

just let know stack overflow users down mark or stop post because not done looking etc. sure have on net before ask question hope link helps you.


Comments