get Long from Cursor - Android Database

Android examples for Database:Cursor Get

Description

get Long from Cursor

Demo Code


//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*/
}

Related Tutorials