get Int from Cursor - Android Database

Android examples for Database:Cursor Get

Description

get Int from Cursor

Demo Code


//package com.java2s;
import android.database.Cursor;

public class Main {
    public static int getInt(Cursor c, String columnName) {
        return c.getInt(c.getColumnIndex(columnName));
    }//from   w  w w . j  a  v a 2s.  co  m
}

Related Tutorials