How to write our own query in Sync Adapter?
<p>I need to use <code>Sync Adapter</code> where we need to use <code>ContentProvider</code> as a mandatory part.  </p>

<ul>
<li>Here I have to write my own queries based on my requirements.</li>
<li>How to write it </li>
<li>How to pass value from  <code>Sync Adapter</code>to activity or vice versa.</li>
</ul>

<p>How can I do this. I cannot find any working model on this am really confused with this  <code>Sync Adapter</code>concept.</p>