[android-developers] Calendar API and local events only

2014-04-23 Thread Danny S.
Hi, I have a (read-only) database with appointments. I need to store these appouintments into the Android calendar using the CalendarProvider. There is no sync needed. I don't know how to identify an event (by it's ID) to prevent duplicate entries of the same appointment. Additionally I don't k

[android-developers] Calendar API

2013-10-08 Thread galsen
Hello Geeks In this code Intent intent = new Intent(Intent.ACTION_INSERT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra(Events.TITLE, "Learn Android"); intent.putExtra(Events.EVENT_LOCATION, "Home suit home"); intent.putExtra(Attendees.ATTENDEE_NAME, Contacts.CONTENT_URI); int

[android-developers] Calendar API has an awkward behaviour

2013-09-25 Thread drjunior
I have this piece of code that creates events with repetition (RRULE) in the main user's calendar: Calendar beginTime = Calendar.getInstance(); #increment one day to the actual time (just for precaution) beginTime.add(Calendar.HOUR, 1); beginTime.add(Calendar.DAY_OF