可获取到android设备上所有绑定的邮箱列表!
AccountManager accountManager = AccountManager.get(this);
Account[] accounts = accountManager.getAccounts();
for (Account account : accounts) {
Log.v("--Get Account Name--", account.name);
Log.v("--Get Account Type--", account.type);
}
权限 <uses-permission android:name = "android.permission.GET_ACCOUNTS" />