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