0

I have an application in which I need to use a calender control. How do I get such a control for android?

I have heard of Ancal , but I don't know how to use it in my application.

Thank you in advance.

2 Answers2

0

How do I get such a control for android?

Android 3.0 has a calendar control (CalendarView). Prior versions of Android do not.

I have heard of Ancal , but I don't know how to use it in my application.

The Ancal project is open source. However, it is an application, not a "calendar control". I am not aware of an open source "calendar control" for Android.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • so the only way out is to make a custom gridview and call it a calendar.... that would be a whole lot of coding for me... – user590849 Apr 18 '11 at 13:34
0

Firstly if your app needs to perform just basic calendar operations such as creating new events or viewing existing events it will be much easier to create intents to launch parts of the built-in calendar app. The activity stack system will ensure the user is returned to your app when the action is complete. Google for 'android calendar intent' or look at these SO questions for more details

How to add calendar events in Android?

How to launch Android Calendar application using Intent (Froyo)

If you are happy to code up your own calendar controls you can read the built-in calendar data using an undocumented calendar data provider. I wrote an article about it on my blog here:

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

Community
  • 1
  • 1
Jim Blackler
  • 22,946
  • 12
  • 85
  • 101
  • i have read your blog and have bookmarked the link also :-)...but i want the calendar to have certain features that i want...so pass around control via intents is not possible...i have heard that android 3.0 has a inbuilt calender widget..like an edittext, button etc. i want such a widget /library for my phone based project working on android 2.1-2.3. – user590849 Apr 18 '11 at 13:14