Here you can find the source of getInt(Cursor cursor, String columnName)
public static int getInt(Cursor cursor, String columnName)
import android.database.CharArrayBuffer; import android.database.Cursor; import android.provider.BaseColumns; public class Main{ public static int getInt(Cursor cursor, String columnName) { return cursor.getInt(cursor.getColumnIndex(columnName)); }//from w w w.j a va 2 s .c o m public int getInt(String columnName) { return getInt(cursor, columnName); } }