Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public boolean IsSyncTriggered() {
  2.  
  3. boolean isActive = false;
  4. am = AccountManager.get(getBaseContext());
  5.  
  6. ac = am.getAccountsByType(Constants.ACCOUNT_TYPE);
  7. if (ac.length > 0) {
  8. isActive = ContentResolver.isSyncActive(ac[0], Constants.AUTHORITY);
  9. }
  10. return isActive;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement