Problems using the EWS Java API on Android

前端 未结 3 1103
长发绾君心
长发绾君心 2020-12-31 13:47

I am trying to use the EWS Java API v1.1.5 (http://archive.msdn.microsoft.com/ewsjavaapi) in an Android application, and have run into a number of issues. I downloaded the s

3条回答
  •  渐次进展
    2020-12-31 14:06

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

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

    2. Make the changes to above api to work for JDK 1.4 in eclipse like remove override annotations e.t.c

    3. Download source code of javax.* package available in below URL, http://www.java2s.com/Code/JarDownload/jsr173/jsr173_1.0_src.jar.zip

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

    5. Keep all the sources under the single java project in eclipse

    6. 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.

    7. Export all the java sources to one single jar file.

    8. Then You good to go to use the jar in Android application with out any problems.

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

提交回复
热议问题