Here you can find the source of getInt(String columnName)
public int getInt(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 ww w . jav a 2s .co m*/ public int getInt(String columnName) { return getInt(cursor, columnName); } }