How to change sync settings through Android API?
<p>Is there a way to change the sync settings of a Gmail account programmatically with an Android app?  For instance, I'd like to enable/disable syncing of a Gmail account from my app, without the user having to do anything.</p>

<p>I took a look at <a href="http://developer.android.com/reference/android/accounts/AccountManager.html" rel="nofollow"><code>AccountManager</code></a>, but that doesn't seem to be the right place to look.</p>
