Example usage for android.widget SimpleCursorAdapter getItem

List of usage examples for android.widget SimpleCursorAdapter getItem

Introduction

In this page you can find the example usage for android.widget SimpleCursorAdapter getItem.

Prototype

public Object getItem(int position) 

Source Link

Usage

From source file:com.commonsware.android.fts.QuestionsFragment.java

@Override
public void onListItemClick(ListView l, View v, int position, long id) {
    SimpleCursorAdapter adapter = (SimpleCursorAdapter) getListAdapter();
    Cursor row = (Cursor) adapter.getItem(position);
    int link = row.getColumnIndex(DatabaseHelper.LINK);

    ((Contract) getActivity()).onQuestionClicked(row.getString(link));
}