Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean IsSyncTriggered() {
- boolean isActive = false;
- am = AccountManager.get(getBaseContext());
- ac = am.getAccountsByType(Constants.ACCOUNT_TYPE);
- if (ac.length > 0) {
- isActive = ContentResolver.isSyncActive(ac[0], Constants.AUTHORITY);
- }
- return isActive;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement