开发者

How can I build a custom calender control for android application?

开发者 https://www.devze.com 2023-02-27 06:12 出处:网络
I have an application in which I need to use a calen开发者_如何学JAVAder control. How do I get such a control for android?

I have an application in which I need to use a calen开发者_如何学JAVAder 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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消