Hi, I am trying to add calendar events by use my application. Event gets saved successfully. However when I try to edit event that saved successfully. I get the Force Close error.
* Cursor userCursor =getContentResolver().query(Uri.parse(calanderURL),null, null, null, null); if(userCursor.getCount() > 0){ userCursor.moveToFirst(); calId = userCursor.getString(userCursor.getColumnIndex("_id")); } ContentValues event = new ContentValues(); event.put("title", "title"); event.put("description", "description"); event.put("eventLocation", "Event Location"); event.put("allDay", 0); event.put("hasAlarm",0); event.put("calendar_id",calId); Calendar mCalendar = Calendar.getInstance(); mCalendar.set(2012, 2, 27,7,00,00); long start = mCalendar.getTimeInMillis(); mCalendar.set(2012, 2, 27,8,00,00); long end = mCalendar.getTimeInMillis(); event.put("dtstart", start); event.put("dtend", end); * * Uri newEvent = Uri.parse(calanderEventURL); getContentResolver().insert(newEvent, event); userCursor.close(); * But when I chang the event.put("allDay", 0); to event.put("allDay",1). Event gets edited successfully . How do i fix it? I am asking for any help.Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en