List of usage examples for android.content ContentResolver setMasterSyncAutomatically
public static void setMasterSyncAutomatically(boolean sync)
From source file:com.sentaroh.android.TaskAutomation.TaskExecutor.java
final static public boolean setAutoSyncDisabled(TaskManagerParms taskMgrParms, EnvironmentParms envParms, CommonUtilities util, TaskResponse taskResponse, ActionResponse ar) { if (ContentResolver.getMasterSyncAutomatically()) { ContentResolver.setMasterSyncAutomatically(false); return true; } else {/*w w w.j a va2s . c o m*/ ar.action_resp = ActionResponse.ACTION_WARNING; ar.resp_msg_text = "AutoSync was already disabled, action ignored"; return false; } }