Here you can find the source of getLong(String columnName)
public long getLong(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)); }//from www . j a va 2s . c o m public long getLong(String columnName) { return getLong(cursor, columnName); } }