MyTimeFinder
MyTimeFinder

Reputation: 1807

Extracting ICS Android Calendar as Stand Alone App

I have been asked to blend our company specific events into the existing Android calendar. Our events have four fields I don't find with the standard CalendarContract.Events class. A boolean "approved" field, an integer "linked" to a resource, and two dateTime fields indicating.

The first step seems to be to extract the existing ICS calendar into a compileable stand alone application. I have downloaded the android.calendar package from github, but it won't compile in Eclipse. It appears to be missing certain imports: com.android.common, com.android.commoncalendar, and com.android.ex.

I have searched stackOverflow for help extracting a stand-alone version of android standard apps, but have mostly seen people respond that it is not possible. I know it is possible because it has been done. You can find it here:

https://play.google.com/store/apps/details?id=com.concentriclivers.calendar

I have emailed the developer to see if he would share his source code or at least describe the steps he took to get the package to compile as a stand alone application, but he has not responded.

Can anyone help me with how to fix the missing imports, or better yet point me to a resource that describes step-by-step how I do this?

Thanks!

Upvotes: 0

Views: 493

Answers (1)

Sparky
Sparky

Reputation: 8477

I wouldn't be in any kind of hurry to rebuild one of the standard apps. That sounds like a recipe for pain. Instead, I suggest you make use of the Calendar content provider that is already present, and create another set of tables that indexes by the Calendar CP but adds the rows you are missing. You could then make a custom cursor that blends these two sources together, or maybe make another content provider to wrap them and keep the cursor simple.

Upvotes: 1

Related Questions