Android Programming
New Android Programming Techniques, Design Concepts, Sample codes, Interview questions, Android UI
Home
Android Programming
Android UI
Android Tools
Java
Kotlin
C/C++
Interview Questions
Current Android Release version:
Version Code: Pie
Version: 9
API level: 28
How to get List of Accounts configured in device
private ArrayList<AccountInfo> mAccountList = null;
Account[] mAccount = AccountManager.get(this).getAccounts();
for (Account account : mAccount) {
AccountInfo list = new AccountInfo(account.name, account.type);
mAccountList.add(list);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment