Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.ContentResolver;

import android.os.Bundle;

public class Main {
    public static void setServiceSync(String Authority, boolean on, android.accounts.Account account) {
        ContentResolver.setSyncAutomatically(account, Authority, on);
        if (on)
            ContentResolver.requestSync(account, Authority, new Bundle());
    }
}