How to get updated event's data from mycalendar in android?
<p>I use following code to get the updated event's time from mycalendar. But when the control reaches titleupd, there exists an exception</p>

<blockquote>
  <p>android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1 </p>
</blockquote>

<pre><code>cursor1 = getContentResolver().query(newuri, new String[]{"_id","dtstart","dtend","title","description"},null, null, null);
    if(cursor1.getCount()&gt;0)
    { 
             cursor1.moveToPosition(lp);
             titleupd = cursor1.getString(3);
             beginupd = new Date(cursor1.getLong(1));
             endupd = new Date(cursor1.getLong(2));
             msupd = beginupd.getTime();
             descupd = cursor1.getString(4);
             updateevent(); 
    }
</code></pre>

<p>how to solve this and Any help is really appreciated. Thanks in advance...</p>
