Event adding problem in Android
<p>In my app I have to add an event. The event has a start date, end date, start time, end time and description. <strong>I do not know now how to add</strong> start date and end date to event.</p>

<p>I use the following code:</p>

<pre><code>            Intent intent = new Intent(Intent.ACTION_EDIT);
            intent.setType("vnd.android.cursor.item/event");
            intent.putExtra("beginTime", cal.getTimeInMillis());
            intent.putExtra("allDay", false);
            intent.putExtra("rrule", "FREQ=DAILY");
            intent.putExtra("endTime", cal.getTimeInMillis()+60*60*1000);
            intent.putExtra("title", "A Test Event from android app");
            startActivity(intent); 
</code></pre>

<p>And when I run this code it asks me to add or cancel in the calendar. But my need is, that it should be added without user interaction. Please help me. </p>
