Android下使用iCal4j库

很简单,将iCal4j库的jar包以及其dependencies的jar包加到Android工程的lib目录下即可:

  • iCal4j包

下载:http://build.mnode.org/snapshots/org/mnode/ical4j/ical4j/

当前最新版本是ical4j-1.0.2

也可以下载代码自己编译:http://ical4j.hg.sourceforge.net/hgweb/ical4j/ical4j/

当前最新版本是ical4j-1.0.3

  • backport-util-concurrent包

下载:http://backport-jsr166.sourceforge.net/

当前最新版本是3.1

  • commons-lang 2.x包

下载:http://commons.apache.org/lang/download_lang.cgi

当前最新版本是commons-lang-2.6

  • commons-codec包

下载:http://commons.apache.org/codec/download_codec.cgi

当前最新版本是commons-codec-1.6

  • commons-logging包

下载:http://commons.apache.org/logging/download_logging.cgi

当前最新版本是commons-logging-1.1.1

 

注意:commons-lang一定要是2.x版本,而不是最新的3.x版本。

 

参考:

http://wiki.modularity.net.au/ical4j/index.php?title=Android

http://ical4j.hg.sourceforge.net/hgweb/ical4j/ical4j-android-test/

http://code.google.com/p/caldav4j/source/browse/android/Android.mk

http://code.google.com/p/ical4android/

http://wiki.modularity.net.au/ical4j/index.php?title=FAQ

Q. Does iCal4j work with Android? I tried using it in my Android project but I get a "verifier rejected class" error.

A. iCal4j does seem to work with Android, however you must remember to include the following iCal4j dependencies in addition to the iCal4j library:

  • commons-lang
  • commons-logging (Possibly optional - due to unofficial inclusion with Android)
  • commons-codec (Possibly optional - due to unofficial inclusion with Android)

 

你可能感兴趣的:(android)