I have a method in my application which populates an array with account information. The problem is I can't get the account details stored in Email application (POP3/IMAP). Is there any way to list the accounts that are created with Email application.
Here is my code:
Account[] accounts = AccountManager.get(getApplicationContext()).getAccounts();
for (Account account : accounts) {
String EmailID = account.name;
String Type =account.type;
Acntlist.add(EmailID);
Acntlist1.add(Type);
}