在Android上使用Exchange Web服务 [英] Use Exchange Web Services on Android

查看:80
本文介绍了在Android上使用Exchange Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个用于Java的Microsoft API,可以连接到Micrsoft Exchange Web服务.不幸的是,如Microsoft教程中所述,它不适用于Android.

there is a microsoft API for Java to connect to Micrsoft Exchange Webservices. Unfortunately it doesn't work on Android as mentioned in the Microsoft tutorial.

有人知道如何通过Android连接到Microsoft Exchange吗?有一种使用WebDav的解决方案,但是Microsoft直到Exchange 2007才支持WebDav.

Has anybody an idea how to connect to Microsoft Exchange with Android? There is a solution using WebDav, but WebDav is only supported by Microsoft up to Exchange 2007.

有人可以帮助我吗?

thx

涡流

推荐答案

通过执行以下步骤,您可以使用Microsoft的EWS api,该api是android的开源软件,

You can use microsoft's EWS api which is open source for android by doing the following steps,

  1. 下载URL中可用的源代码, http://archive.msdn.microsoft.com/ewsjavaapi EWSJavaAPI_1.1.5.zip

  1. Download the source code available in the URL, http://archive.msdn.microsoft.com/ewsjavaapi EWSJavaAPI_1.1.5.zip

对上述api进行更改以使其在Eclipse中适用于JDK 1.4,例如删除覆盖注释等

Make the changes to above api to work for JDK 1.4 in eclipse like remove override annotations etc

下载javax.*软件包的源代码,可在下面的URL中找到, http://www.java2s.com/Code/Jar/j/Downloadjsr17310srcjar.htm jsr173_1.0_src.jar.zip

Download source code of javax.* package available in below URL, http://www.java2s.com/Code/Jar/j/Downloadjsr17310srcjar.htm jsr173_1.0_src.jar.zip

下载以下网址中提供的stax api的源代码, http://dist.codehaus.org/stax/distributions stax-src-1.2.0.zip

Download source code of stax api available in below URL, http://dist.codehaus.org/stax/distributions stax-src-1.2.0.zip

将所有源代码保存在eclipse中的单个Java项目下

Keep all the sources under the single java project in eclipse

打开项目资源管理器,然后选择以" javax "开头的包,然后重命名为您的公司名称,例如: com . 注意: Eclipse将要求所有命名上下文更改,然后单击确定".

Open the project explorer and select the package which are starts with "javax" and rename to your company name eg: com. Note: Eclipse will ask for all the naming contexts will change then click OK.

将所有Java源代码导出到一个jar文件中.

Export all the java sources to one single jar file.


您现在可以好好使用Android应用程序中的jar了,没有任何问题.


You are good now to go to use the jar in Android application with out any problems.

我使用了与上述相同的方法,并且可以100%完美地在android应用程序中工作.

I used the same way explained above and it worked in android application 100% perfectly.

这篇关于在Android上使用Exchange Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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