是我还是找不到任何有关如何以编程方式添加/配置 Microsoft Exchange 的示例?
好像是
账户管理器::
addAccount (String accountType, String authTokenType, String[] requiredFeatures, Bundle addAccountOptions, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)
应该做的工作。 但是,我不知道如何使用 Microsoft Exchange 帐户。 你能给我指出一个简单的工作示例代码吗?
谢谢。
最佳答案
应用程序好像做不到。
你会得到以下异常:
ERROR/AndroidRuntime(442): Caused by: java.lang.SecurityException: caller uid xxxxx is different than the authenticator's uid
您会收到此异常,因为客户经理验证编写交换验证器 (Google) 的应用程序与创建该帐户的应用程序相同。 here's a post这解释了 AccountManager
在这种情况下的逻辑。
关于Android 如何以编程方式添加/配置 Exchange 设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4056043/