title: Why does ContentResolver.requestSync not trigger a sync?
body: <p>I am trying to implement the Content-Provider-Sync Adapter pattern as discussed at <a href="http://dl.google.com/googleio/2010/android-developing-RESTful-android-apps.pdf" rel="noreferrer">Google IO</a> - slide 26. My content provider is working, and my sync works when I trigger it from the Dev Tools Sync Tester application, however when I call ContentResolver.requestSync(account, authority, bundle) from my ContentProvider, my sync is never triggered.</p>
  
  <pre><code>ContentResolver.requestSync(
          account, 
          AUTHORITY, 
          new Bundle());
  </code></pre>
  
  <p>Edit -- added manifest snippet
  My manifest xml contains:</p>
  
  <pre><code>&lt;service
      android:name=".sync.SyncService"
      android:exported="true"&gt;
      &lt;intent-filter&gt;
          &lt;action
              android:name="android.content.SyncAdapter" /&gt;
      &lt;/intent-filter&gt;
      &lt;meta-data android:name="android.content.SyncAdapter"
      android:resource="@xml/syncadapter" /&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>--Edit</p>
  
  <p>My syncadapter.xml associated with my sync service contains:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"  
      android:contentAuthority="AUTHORITY"
      android:accountType="myaccounttype"
      android:supportsUploading="true"
  /&gt;
  </code></pre>
  
  <p>Not sure what other code would be useful.  The account passed to requestSync is of "myaccounttype" and the AUTHORITY passed to the call matches my syc adapter xml.</p>
  
  <p>Is ContentResolver.requestSync the correct way to request a sync?  It looks like the sync tester tool binds directly to the service and calls start sync, but that seems like it defeats the purpose of integrating with the sync architecture.</p>
  
  <p>If that is the correct way to request a sync then why would the sync tester work, but not my call to ContentResolver.requestSync?  Is there something I need to pass in the bundle?</p>
  
  <p>I am testing in the emulator on devices running 2.1 and 2.2.</p>