Android 2.2 - Why I can not see the event I added into Calendar?
<p>I am new to android development world. I want to add one event into my native calendar, I can see the operation successfully, however when I go to Calendar I can not see that. My codes are below</p>

<p>String [] projection = new String [] {"_id", "name"};
                Uri calendars = Uri.parse("content://com.android.calendar/calendars");</p>

<pre><code>            Cursor c = managedQuery(calendars, projection, "selected=1", null, null);

            if(c.moveToFirst()){
                String calName;
                String calID;
                int nameColumn = c.getColumnIndex("name");
                int idColumn = c.getColumnIndex("_id");
                calName = c.getString(nameColumn);
                calID = c.getString(idColumn);

                Time start = new Time("20110416T090000");
                Time end = new Time("20110416T100000");
                ContentValues values = new ContentValues();
                values.put("calendar_id", calID);
                values.put("title", "Event Title");
                values.put("description", "test d");
                values.put("eventLocation", "Melbourne");
                values.put("dtstart", start.toMillis(true));
                values.put("dtend", end.toMillis(true));
                values.put("allDay", 0);
                values.put("eventStatus", 1);
                values.put("transparency", 0);
                values.put("visibility", 0);
                values.put("hasAlarm", 1);
                Uri events = Uri.parse("content://com.android.calendar/events");
                Uri result = getContentResolver().insert(events, values);
</code></pre>

<p>I use Motorola unit. Can anybody point out why I am failed? Thanks a lot.</p>
