Disallow multiple accounts in AccountManager
问题 I've implemented my AccountManager authenticator and the service and the whole deal and it all seems to be working fine. There is, however, one little problem: I only want a single account for my app to exist in account manager, but can't quite seem to find a way to limit this. Is my only solution to do a search and delete the current accounts (by type) before adding the new account? My current code: private void removeAccounts() { Account [] accounts = mAcctMgr.getAccountsByType