Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 未列出电子邮件应用程序中的帐户_Android_Android Account - Fatal编程技术网

Android 未列出电子邮件应用程序中的帐户

Android 未列出电子邮件应用程序中的帐户,android,android-account,Android,Android Account,我的应用程序中有一个方法,用帐户信息填充数组。 问题是我无法获取存储在电子邮件应用程序(POP3/IMAP)中的帐户详细信息。 是否有任何方法列出使用电子邮件应用程序创建的帐户 这是我的密码: Account[] accounts = AccountManager.get(getApplicationContext()).getAccounts(); for (Account account : accounts) { String EmailID = account.na

我的应用程序中有一个方法,用帐户信息填充数组。 问题是我无法获取存储在电子邮件应用程序(POP3/IMAP)中的帐户详细信息。 是否有任何方法列出使用电子邮件应用程序创建的帐户

这是我的密码:

 Account[] accounts = AccountManager.get(getApplicationContext()).getAccounts();
  for (Account account : accounts) {
        String EmailID = account.name;
        String Type =account.type;
        Acntlist.add(EmailID);
        Acntlist1.add(Type);
   }

这可能会有帮助@RoystonPinto:谢谢。但是,从电子邮件应用程序添加的帐户未列在
帐户和同步设置中。是否有任何方法可以使用
ContentProvider
检索未列出的帐户?否,这将保存在这些应用程序的私人空间中。它们未添加到ContentProvider访问的数据库中。这可能有助于@RoystonPinto:谢谢。但是,从电子邮件应用程序添加的帐户未列在
帐户和同步设置中。是否有任何方法可以使用
ContentProvider
检索未列出的帐户?否,这将保存在这些应用程序的私人空间中。它们不会添加到ContentProvider访问的数据库中。