Android: How to save entry to the calendar automaticly
<p>How can i save entry to the calendar automaticly?If i use this source code,it opens Calendar with filled entrys, but i must click on save button to save it.</p>

<p>Source code:</p>

<pre><code> while (callCur.moveToNext()){
            String Number = callCur.getString(callCur.getColumnIndex(android.provider.CallLog.Calls.NUMBER));

            Log.d(TAG, "Value of Number: " + Number);

            intent.setType("vnd.android.cursor.item/event");

            intent.putExtra ("title", Number);
            intent.putExtra ("description", "test2");
            intent.putExtra ("eventLocation", "somewhere");
            intent.putExtra ("beginTime", System.currentTimeMillis () + 60 * 60 * 1000);
            intent.putExtra ("endTime", System.currentTimeMillis () + 2 * 60 * 60 * 1000);


            startActivity(intent);

        }
</code></pre>
