title: How to test sync adapter running
body: <p>Following this <a href="http://developer.android.com/training/sync-adapters/running-sync-adapter.html" rel="nofollow">tutorial</a>, I managed to set up a sync adapter to do data sync between Android app and web server. I can see the sync working when I force the app to do sync by toggle the Sync on/off from Settings > Accounts > MyApp.</p>
  
  <p>But, I have not been able to confirm that the sync is actually working when internet connection is available after the app running without internet connection. </p>
  
  <p>I chose to run the sync adapter after a network message:</p>
  
  <pre><code>mResolver.setSyncAutomatically(ACCOUNT, AUTHORITY, true);
  </code></pre>
  
  <p>How do I test to make sure that sync adapter running after a network message? Should manually turning off/on internet connection (3G and/or Wifi) trigger the sync adapter to run immediately?</p>