Account

AccountManager.getAccountsで、Account型の配列を取得できる。

Account  |  Android Developers

Accountには、name以外にtypeというフィールドもある。
typeはアカウントの種類を表す。
リストビューでnameに加えてtypeも表示する。

今回は2つのTextView、name用とtype用。

nameもtypeもString。

2つのTextViewに、それぞれセット。

Account型accountからnameとtypeを取得し、itemにセットしてlistに追加。

こんな感じでいろんなtypeが表示される
こんな感じでいろんなtypeが表示される

こんな感じでいろんなtypeが表示される。

Sample/android/Account/Account/src/Account at master · bg1bgst333/Sample · GitHub