This is a simple code. Check out this.
Pattern emailPattern = Patterns.EMAIL_ADDRESS; // API level 8+ Account[] accounts = AccountManager.get(context).getAccounts(); for (Account account : accounts) { if (emailPattern.matcher(account.name).matches()) { String possibleEmail = account.name; System.out.println(possibleEmail); } }
PLease check the LogCat for the List of EMAIL ADDRESSES.