-4

I have some problem of inserting new or edit event by grammatically. Android Foryo os 2.2 working fine but same things is not run in ICS. I know the ContentProvider url but error is on Column field.

Please help me or post your Code or samples.

jprofitt
  • 10,874
  • 4
  • 36
  • 46
Ashok Domadiya
  • 1,124
  • 13
  • 31

1 Answers1

1

Here is a sample for editing a new event:

Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("title", myStringTitle);
intent.putExtra("description", myStringDescription);
intent.putExtra("eventLocation",myStringLocation);
intent.putExtra("beginTime", myBeginDate.getTimeInMillis());
intent.putExtra("endTime", myEndDate.getTimeInMillis());

I hope this will help you.

AMerle
  • 4,354
  • 1
  • 28
  • 43
  • this code is working fine but that calendar also opened when i execute this code. I have to add the events without showing the calendar to the user – AndroidRaji Dec 24 '12 at 05:40