Manu George
Manu George

Reputation: 251

How to create/use a Calendar inside an Android Application (not as an Intent)

I am working on an Android application which requires a google synced calendar as part of it. I cannot use an Intent to show up the Android Calendar Activity. It has to be a part of the application. The calendar takes up only half of the screen, and rest of the area should be filled with the application content.

  1. Can someone tell me how to go about this?
  2. I would have to create a new custom calendar as a View? Or its not possible at all?
  3. Is there any custom calendar view available already so that I can plug it and use?

Thanks guys.

Upvotes: 4

Views: 3879

Answers (2)

David Underwood
David Underwood

Reputation: 4966

Try the following articles. The first covers reading a calendar, the second covers creating events:

http://jimblackler.net/blog/?p=151

http://android.arnodenhond.com/tutorials/calendar

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006869

Can someone tell me how to go about this?

Use the Google Calendar GData API.

I would have to create a new custom calendar as a View? Or its not possible at all?

There is no Calendar widget in Android. You would have to create one yourself or find a third-party widget for this.

Is there any custom calendar view available already so that I can plug it and use?

None that I am aware of, though you may find one via a search engine.

Upvotes: 2

Related Questions