Home | History | Annotate | Download | only in com.example.android.basicsyncadapter

Lines Matching defs:account

19 import android.accounts.Account;
38 // Value below must match the account type specified in res/xml/syncadapter.xml
39 public static final String ACCOUNT_TYPE = "com.example.android.basicsyncadapter.account";
42 * Create an entry for this application in the system account list, if it isn't already there.
52 // Create account, if it's missing. (Either first run, or user has deleted account.)
53 Account account = GenericAccountService.GetAccount(ACCOUNT_TYPE);
56 if (accountManager.addAccountExplicitly(account, null, null)) {
57 // Inform the system that this account supports sync
58 ContentResolver.setIsSyncable(account, CONTENT_AUTHORITY, 1);
59 // Inform the system that this account is eligible for auto sync when the network is up
60 ContentResolver.setSyncAutomatically(account, CONTENT_AUTHORITY, true);
64 account, CONTENT_AUTHORITY, new Bundle(),SYNC_FREQUENCY);
68 // Schedule an initial sync if we detect problems with either our account or our local
70 // the account list, so wee need to check both.)
95 GenericAccountService.GetAccount(ACCOUNT_TYPE), // Sync account