Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Let me explain as much as I could. Basically your policy looks pretty good, but actually it is bit more complex than you thought.</p> <p>On Android, <em>a contact</em> can be associated with several <a href="http://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html"><em>raw</em> contacts</a>, which may be provided from many data providers, such as Google, Facebook, Skype and so on. For example, if one of your friends in your local contacts is also using Skype, there are two raw contacts existing separately in <a href="http://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html"><code>ContactContracts.RawContacts</code></a>, but they will be aggregated automatically and show up just as one contact when you query to <a href="http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html"><code>ContactsContract.Contacts</code></a>. </p> <p>That is also why it's hard to identify a contact uniquely, because <a href="http://support.google.com/android/bin/answer.py?hl=en&amp;answer=1688406">you can split or join them</a> anytime you want. <code>LOOKUP_KEY</code> isn't very handy for this case.</p> <p>Many apps except Google only provide a one-way sync, <em>i.e.</em> only from service to contacts, so they are read-only. In this case, the deleted flag will not be used and simply deleted during their synchronization process. Thus, you can not simply rely on the flag.</p> <p>Though there isn't a good simple solution, I guess it's much easier to achieve what you want, if you observe for a specific <code>RawContacts</code>, not <code>Contacts</code>. Hope this helps your understanding.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload