get Int from Cursor by column name - Android Database

Android examples for Database:Cursor Get

Description

get Int from Cursor by column name

Demo Code


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

public class Main {
    protected static int getInt(Cursor mCursor, String column) {
        return mCursor.getInt(mCursor.getColumnIndex(column));
    }//  w w w .jav a  2 s. co m
}

Related Tutorials