Back to project page inotes.
The source code is released under:
GNU General Public License
If you think the Android project inotes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.codeminders.inotes.sync; //from w w w . j ava 2 s . c om import android.accounts.Account; import android.content.ContentResolver; import com.codeminders.inotes.Constants; public class SyncAllAccountsInfo implements SyncInfo { private Account[] accounts; public SyncAllAccountsInfo(Account[] accounts) { this.accounts = accounts; } public boolean isSyncActive() { for (Account account: accounts) { if (ContentResolver.isSyncActive(account, Constants.AUTHORITIES)) { return true; } } return false; } }