Android 从SimpleCursorAdapter.getView()中的游标获取数据

Android 从SimpleCursorAdapter.getView()中的游标获取数据,android,Android,我正在使用SimpleCursorAdapter的实现,它实现了SectionIndexer。这是其中的一部分: public class MyAlphabetizedAdapter extends SimpleCursorAdapter implements SectionIndexer { public ContactAlphabetizedAdapter(Context context, int layout,

我正在使用
SimpleCursorAdapter
的实现,它实现了
SectionIndexer
。这是其中的一部分:

        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;
             }
        }
在getView(position)中,我需要从该位置的游标访问数据。我该怎么做

UPD

我正在使用教程。

试试这个:

@Override
public View getView(int position, View convertView, ViewGroup parent)
{
  ...
  Cursor cursor = (Cursor) getItem(position);
}

此调用后游标为空。是否有实现getItem的原因?移除它,让超类得到它