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