안녕하세요
갤럭시 s6에서
Pattern emailPattern = Patterns.EMAIL_ADDRESS; // API level 8+
Account[] accounts = AccountManager.get(this).getAccounts();
for (Account account : accounts) {
if (emailPattern.matcher(account.name).matches()) {
String type = account.type;
if (type.equals("com.google")) {
String id = account.name;
arrUserId.add(id);
}
}
}
AccountManager 갯수가 0로 넘어오는데요.. 혹시 아시는 계신가요?
퍼미션도 줬는데.. 일단..s6에서만 안넘어오네요...ㅠ