Get data from cursor in SimpleCursorAdapter.getView()
<p>I'm using implementation of <code>SimpleCursorAdapter</code>, which implements <code>SectionIndexer</code>. Here's part of it:</p>

<pre><code>        public class MyAlphabetizedAdapter extends SimpleCursorAdapter implements
                SectionIndexer {
             public ContactAlphabetizedAdapter(Context context, int layout,
                    Cursor cursor, String[] from, int[] to) {
               mIndexer = new AlphabetIndexer(cursor, cursor.getColumnIndexOrThrow(ContactsContract.Data.DISPLAY_NAME), sAlphabet);
             }
             @Override
             public Object getItem(int position) {
                 if (getItemViewType(position) == TYPE_NORMAL) {
                     return super
   .getItem(position
                - mSectionToOffset
                .get(getSectionForPosition(position)) - 1);
                 }
                return null;
             }
        }
</code></pre>

<p>Inside getView(position) I need to access data from cursor for that position. How do I do it?</p>

<p><strong>UPD</strong></p>

<p>I'm using <a href="http://eshyu.wordpress.com/2010/08/15/cursoradapter-with-alphabet-indexed-section-headers/#comment-80" rel="nofollow">this </a> tutorial.</p>
