Here you can find the source of getIntFromCursor(Cursor cursor, String columnName)
private static int getIntFromCursor(Cursor cursor, String columnName)
//package com.java2s; import android.database.Cursor; public class Main { private static int getIntFromCursor(Cursor cursor, String columnName) { return cursor.getInt(cursor.getColumnIndex(columnName)); }/*w w w. jav a 2s . c o m*/ }