I'm just getting up to speed on Android, and today in a project meeting someone said that Android has no native calendar app so users just use whatever calendar app they like.
Is this true, and if so how do I programmatically add an event to the user's calendar? Is there a common API they all share?
For what it's worth, we're probably targeting Android 2.x.
if you have a given Date string with date and time .
for e.g
String givenDateString = pojoModel.getDate()/* Format dd-MMM-yyyy hh:mm:ss */
use the following code to add an event with date and time to the calendar
Try this in your code:
Try this ,
Google calendar is the "native" calendar app. As far as I know, all phones come with a version of it installed, and the default SDK provides a version.
You might check out this tutorial for working with it.
Use this API in your code.. It will help u to insert event, event with reminder and event with meeting can be enabled... This api works for platform 2.1 and above Those who uses less then 2.1 instead of content://com.android.calendar/events use content://calendar/events
As of Android version 4.0 official APIs and intents are available to interact with the available calendar providers.