Skip to content

Androidアプリのサンプルです。 コンテントプロバイダからカレンダーのイベントを全て取得して、各イベントを一部抜粋してLogへの出力と画面表示を行います。

License

Kimita/CalEvents

Repository files navigation

CalEvents

Android Application Sample. It get all calendar events from content provider, output to log, and display part of event.

[Considerations when building] There is a following in a library that is included with the distribution of ical4j-1.0.5 .

  • backport-util-concurrent-3.1.jar
  • commons-codec-1.8.jar
  • commons-lang-2.6.jar
  • commons-logging-1.1.3.jar
  • groovy-all-2.1.1.jar <<--- !! Note here !!
  • ical4j-1.0.5.jar

groovy-all-2.1.1.jar generates a warning in large quantities at build time in auther's development environment, Eclipse is terminated with an out of memory by it. To avoid this problem, it is preferable to use groovy-2.2.2-indy.jar than groovy-all-2.1.1.jar. However, instead of placing the library folder(PROJECT_DIR/libs/), by the use by setting the classpath as external library, would avoid the problems of another new.

From the above, I did not include in the git repository of this application groovy-all-2.1.1.jar of ical4j included. If you want to build this application, it is necessary to get the groovy-2.2.2-indy.jar on your own, use it be incorporated into the project as an external JAR. (set .classpath)

-- get groovy -- http://groovy.codehaus.org/Download


Androidアプリのサンプルです。 コンテントプロバイダからカレンダーのイベントを全て取得して、各イベントを一部抜粋してLogへの出力と画面表示を行います。

【ビルド時の注意点】 ical4j-1.0.5の配布物に同梱されているライブラリ(jarファイル)には下記があります。 ・backport-util-concurrent-3.1.jar ・commons-codec-1.8.jar ・commons-lang-2.6.jar ・commons-logging-1.1.3.jar ・groovy-all-2.1.1.jar <-- ここに注意 ・ical4j-1.0.5.jar

これらのうち、作者の開発環境(Eclipse with ADT)ではical4j同梱のgroovy-allを使うとAPKビルド時にけたたましくwarningが出てビルド完了前にEclipseがメモリ不足で落ちたりと酷いことになった。 色々調べて、「indyを有効にしてるgroovyだったらどうだろう?」と考えた。

そこでgroovy-2.2.2-indy.jarを使った。 するとまず、project直下のlibsに放り込んだ場合はgroovy-allの時と同様のwarningがけたたましく出て最終的にエラーでビルドできなかった。 しかしこれを外部jarとしてprojectにaddした場合、問題が解消してapkのビルドが完了した。

以上のことから、groovyに関しては ical4j同梱のjarファイルを本アプリのgitリポジトリデータには含めないようにした。 本リポジトリからsourceを取得してビルドする場合は、別途groovy-2.2.2-indy.jarを入手して外部jarとしてprojectに取り込んで(.classpathにkind="lib"で指定して)使ってください。

-- groovyの配布元 -- http://groovy.codehaus.org/Download


作者の開発/テスト環境 (auther's development and test environment)

OS : Windows7 / Mac OS X Mavericks IDE: Eclipse with ADT (Eclipse 4.2 / ADT v22.3.0) Android deviceis: HTCJ ISW13HT [Android 4.0.2] IS03 [Android 2.2.1]

About

Androidアプリのサンプルです。 コンテントプロバイダからカレンダーのイベントを全て取得して、各イベントを一部抜粋してLogへの出力と画面表示を行います。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages