Is there a way to turn on/off Sync with on{x} scripting?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the on{x} documentation, no.
You can turn on/off mobile data usage, using
mobileDataEnabled(get; set;)but that’s probably not what you’re looking for.Actually, on second thought, you could write a native Android app that would receive a custom intent and toggle the sync setting, and then call that from on{x} using
launch(String appName, Object params, Object callback). See the applications section of the on{x} docs for more on this.…and general sync settings "auto-sync" checkbox programtically may help you with making such a native app.