Android examples for Database:Cursor Get
get Long from Cursor
//package com.java2s; import android.database.Cursor; public class Main { public static long getLong(Cursor c, String columnName) { return c.getLong(c.getColumnIndex(columnName)); }/*from w w w . jav a2s. c om*/ }