title: Want to add event to calender in Android
body: <p>HI I am developing a android app in which I am suppose to handle calendar . I am unable to add event in my own calendar . I have used following code . using that code I am able to add event in a default calendar .. please suggest me the changes needed in my code to add event in the calendar of my app</p>
  
  <pre><code>private void addevent() {
          // TODO Auto-generated method stub
          Intent calIntent = new Intent(Intent.ACTION_INSERT);
          calIntent.setType("vnd.android.cursor.item/event");
          calIntent.putExtra(Events.TITLE, "My House Party");
          calIntent.putExtra(Events.EVENT_LOCATION, "My Beach House");
          calIntent.putExtra(Events.DESCRIPTION, "A Pig Roast on the Beach");
          GregorianCalendar calDate = new GregorianCalendar(2013, 4, 16);
          calIntent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY, true);
          calIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME,
               calDate.getTimeInMillis());
          calIntent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME,
               calDate.getTimeInMillis());
          startActivity(calIntent);
          Toast.makeText(this, "event added", Toast.LENGTH_SHORT).show();
  
      }
  </code></pre>