Here you can find the source of getStringFromCursor(Cursor cursor, String columnName)
private static String getStringFromCursor(Cursor cursor, String columnName)
//package com.java2s; import android.database.Cursor; public class Main { private static String getStringFromCursor(Cursor cursor, String columnName) {// w w w . j a va2 s . c om return cursor.getString(cursor.getColumnIndex(columnName)); } }