android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 5
<p>plz help me i face this problem</p>

<p>my code is</p>

<pre><code>`final Cursor curr = dbhelper.getdatatomanagedata();
startManagingCursor(curr);
Integer colid = curr.getInt(0);
String colans = curr.getString(1);
objansMap = new HashMap&lt;Integer, String&gt;(); 
if (curr!=null)
{ 
 curr.moveToFirst();
 while(!curr.isAfterLast())
 {
    objansMap.put(colid, colans);
    curr.moveToNext();
 }}
</code></pre>
