Android的如何添加/配置Exchange设置编程? [英] Android How to add/configure Exchange setting programmatically?

查看:238
本文介绍了Android的如何添加/配置Exchange设置编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是我还是我无法找到如何添加任何例子/ Microsoft Exchange配置编程?

Is it me or I can't find any example of how to add/configure Microsoft Exchange programatically?

看起来

的AccountManager ::

AccountManager ::

addAccount (String accountType, String authTokenType, String[] requiredFeatures, Bundle addAccountOptions, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)

应该做的工作。 但是,我不知道如何为Microsoft Exchange帐户。 你可以点我到一个简单的工作例如code?

should do the work. However, I can't figure out how for Microsoft Exchange account. Could you point me to a simple working example code?

感谢你。

推荐答案

好像它不能由应用程序完成。

Seems like it can't be done by applications.

您会得到以下异常:

ERROR / AndroidRuntime(442):java.lang.SecurityException异常:产生的原因来电UID xxxxx是不是认证的uid不同

由于客户经理验证这写的交换身份验证的应用程序(谷歌)是同一个正在创建帐户,你会得到这个异​​常。 这里有一个帖子解释的AccountManager 在这种情况下的逻辑。

you'll get this exception because the account manager verifies that the application that wrote the exchange authenticator (Google) is the same one that is creating the account. here's a post that explains AccountManager's logic in that case.

这篇关于Android的如何添加/配置Exchange设置编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆