Java tutorial
//package com.java2s; //License from project: Apache License import android.database.Cursor; public class Main { public static long getLong(Cursor cursor, String column) { return cursor.getLong(cursor.getColumnIndex(column)); } }