I am looking for a way to enable/disable the \"auto-sync\" checkbox in the \"general sync settings\".
Afair the stock power control widget has this feature too. If
I am looking for a way to enable/disable the "auto-sync" checkbox in the "general sync settings".
UPDATE
Try setMasterSyncAutomatically() on ContentResolver.
ContentResolver.setMasterSyncAutomatically(true); // enables AutoSync
You should also add this
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
to your AndroidManifest.xml file.