My application needs to synchronize some data from server. I added necessary classes (similarly to SampleSyncAdapter) now I can add account via \"Settings/Sync and Accounts\
A bit late but...
Account account = new Account("Title", "com.package.nom"); String password = "password"; AccountManager accountManager = AccountManager.get(context); accountManager.addAccountExplicitly(account, password, null);