Skip to content Skip to sidebar Skip to footer

How Can I Get Email Ids Of Yahoo/microsoft Account

Is it possible to get Yahoo/Microsoft email id/ ids which are configured with PlayStore app in android device. I use com.yahoo.mobile.client.share.sync for Yahoo. But Not Working

Solution 1:

Replace the account type

com.yahoo.mobile.cllient.share.sync

to

com.yahoo.mobile.client.share.account

Solution 2:

This is late but it might help someone.To get google,yahoo,microsoft accounts...use either of the three:

Stringemail=null;

    PatterngmailPattern= Patterns.DOMAIN_NAME;
    AccountManagermanager= AccountManager.get(this);
    Account[] accounts = manager.getAccountsByType("com.google");
    for (Account account : accounts) {
        if (gmailPattern.matcher(account.name).matches()) {
            email = account.name;
        }
    }
    Account[] accounts1 = manager.getAccountsByType("com.android.email");
    for (Account account : accounts1) {
        if (gmailPattern.matcher(account.name).matches()) {
            email = account.name;
        }
    }
    Account[] accounts2 = manager.getAccountsByType("com.android.exchange");
    for (Account account : accounts2) {
        if (gmailPattern.matcher(account.name).matches()) {
            email = account.name;
        }
    }

Post a Comment for "How Can I Get Email Ids Of Yahoo/microsoft Account"