Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/224.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:摩托罗拉XT720交换帐户问题_Android_Exchange Server_Motorola_Android Syncadapter - Fatal编程技术网

Android:摩托罗拉XT720交换帐户问题

Android:摩托罗拉XT720交换帐户问题,android,exchange-server,motorola,android-syncadapter,Android,Exchange Server,Motorola,Android Syncadapter,我在Android Market上发布了一个应用程序,可以将联系人保存到不同的帐户。此应用程序允许用户选择要将联系人保存到的帐户。但许多摩托罗拉用户报告说,Exchange帐户在可能的帐户列表中不可用 下面是我用来获取同步适配器的一段代码,它可以保存联系人: final Set<String> accountTypeSet = new HashSet<String>(); final SyncAdapterType[] syncAdapters = ContentRes

我在Android Market上发布了一个应用程序,可以将联系人保存到不同的帐户。此应用程序允许用户选择要将联系人保存到的帐户。但许多摩托罗拉用户报告说,Exchange帐户在可能的帐户列表中不可用

下面是我用来获取同步适配器的一段代码,它可以保存联系人:

final Set<String> accountTypeSet = new HashSet<String>();

final SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypes();
for( final SyncAdapterType syncAdapter : syncAdapters ) {
    if ( !syncAdapter.isKey
            && syncAdapter.isUserVisible()
            && syncAdapter.supportsUploading()
            && ContactsContract.AUTHORITY.equals( syncAdapter.authority ) )
    {
        accountTypeSet.add( syncAdapter.accountType );
    }
}
据我所知,摩托罗拉设备上的Exchange帐户违反了本规范的某些条件。但我没有任何摩托罗拉设备来重现这个问题。我认为摩托罗拉Exchange SyncAdapterType.authority值可能与ContactsContract.authority不同。但这只是一个假设。这个问题的真正原因是什么