error opening trace file: No such file or directory (2) Google Calendar
<p>I'm follow the guide <a href="http://developer.android.com/guide/topics/providers/calendar-provider.html#insert-calendar" rel="nofollow">here</a>
for adding event on Google Calendar but it don't add event into calendar and i have error:</p>

<p>error opening trace file: No such file or directory (2)</p>

<p>and </p>

<pre><code>long eventID = Long.parseLong(uri.getLastPathSegment());
</code></pre>

<p>is not used, Why?</p>

<p>code main:</p>

<pre><code>    long calID = 3;
Calendar beginTime = Calendar.getInstance();

ContentResolver cr = getContentResolver();
ContentValues values = new ContentValues();
values.put(Events.DTSTART, beginTime.getTimeInMillis() + 11*60*1000);
values.put(Events.DTEND, beginTime.getTimeInMillis()+60*60*1000);
values.put(Events.TITLE, "Jazzercise");
values.put(Events.DESCRIPTION, "Group workout");
values.put(Events.CALENDAR_ID, calID);
values.put(Events.EVENT_TIMEZONE, "America/Los_Angeles");
Uri uri = cr.insert(Events.CONTENT_URI, values);

// get the event ID that is the last element in the Uri
long eventID = Long.parseLong(uri.getLastPathSegment());
// 
// ... do something with event ID
//
//  
</code></pre>

<p>manifest:</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.inscal"
    android:versionCode="1"
    android:versionName="1.0" &gt;
  &lt;uses-sdk
        android:minSdkVersion="16"
        android:targetSdkVersion="16" /&gt;
    &lt;uses-permission android:name="android.permission.READ_CALENDAR" /&gt;
    &lt;uses-permission android:name="android.permission.WRITE_CALENDAR" /&gt;
    &lt;application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" &gt;
        &lt;activity
            android:name="com.example.inscal.MainActivity"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>How can I solve this?</p>
