开发者

Check if any email account setup in android

How can I check in android if any email account i开发者_高级运维s set up?


You can use the AccountManager for checking the google accounts on an android phone :

    AccountManager am = AccountManager.get(getApplicationContext());
    Account[] accounts = am.getAccounts();

    for (Account account : accounts) {
    //do something with account
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜