Android examples for Database:Cursor Column
get database Cursor Column As Int
//package com.java2s; import android.database.Cursor; public class Main { public static int getColumnAsInt(Cursor c, String columnName) { int index = c.getColumnIndex(columnName); return c.getInt(index); }//from w w w. j a v a2 s. c o m }