Strange behaviour retrieving values from a cursor query
<p>Good day, Hope the tilte is not misleading. please take a look at the code snippet below and notice the commented parts:</p>

<pre><code>//if(cursor.moveToFirst()){
if(cursor.moveToNext() == true){

         // do {
                Log.d(TAG, "Column Name in bindview is " + columnName);
                String name = cursor.getString(cursor.getColumnIndexOrThrow(columnName));

                Log.d(TAG, " name is " + name);


           // } while(cursor.moveToNext());
       //}
   }
</code></pre>

<p>now only when i use <code>cursor.moveToNext()</code> do i get a value for the string <code>"name"</code>.if i use the <code>do/while</code> statement as commented out in the above code or cursor.moveTofirst(), i get null value for the string. any idea why this is happening.</p>

<p>*<strong><em>Background</strong>:</em>* am calling/initalizing this <code>CursorAdapter</code> from <code>onLoadFinished()</code> of a <code>CursorLoader</code>.</p>
