2017-12-11 1 views

답변

0

대답은 여기

accMgr.getAccountsByType(AccountGeneral.ACCOUNT_TYPE); 

, 내가, 내가 그것을 제거하기 위해 모든 계정 및 루프를 받아야 잘못 입력하여 계정을 얻을이 줄을이었다, 그래서 대답은 (getAccounts와 함께이 라인을 대체)

{ 

        AccountManager accMgr = AccountManager.get(getApplicationContext()); 
        Account[] accounts = accMgr.getAccounts(); 
        for (Account ac : accounts) { 
         accMgr.removeAccount(ac, null, null); 
        } 
      } 
관련 문제