0

I want to make an application for my calender events what I want to do is when i will create an event on my server the same should be automatically added in the android native calender using my application so is it possible to add events in android default calender using a third party application if yes how it can be implemented ?

I am planning to use Google push notification to push the event details or is there any API so that the calender will automatically sync like same for Gmail calenders and facebook calender.

Piyush Agarwal
  • 25,608
  • 8
  • 98
  • 111

1 Answers1

0

Is it possible to add events in android default calender using a third party application if yes how it can be implemented ?

=> Yes It's possible through either Calendar content provider (for Android 4.0) or CalendarContract (For Android >4.0) content provider.

check this for CalendarContract example and check this for Calendar content provider

Community
  • 1
  • 1
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
  • I am having these two in the link you replied `eventValues.put("dtstart", startDate);` `eventValues.put("dtend", endDate);` how to put dates in that ? – Piyush Agarwal Apr 08 '13 at 19:48
  • @pyus13 how to put means? Both the examples have proper code for the same, have you checked both? – Paresh Mayani Apr 08 '13 at 19:54
  • ya i have checked. but I got some thing from other link actually the given link is about to set for today but i need to set it on some particular date and time `cal.set(date and time)` helped me for the same thanks a lot. – Piyush Agarwal Apr 09 '13 at 06:16