get Double from Cursor - Android Database

Android examples for Database:Cursor Get

Description

get Double from Cursor

Demo Code


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

public class Main {
    public static double getDouble(Cursor c, String columnName) {
        return c.getDouble(c.getColumnIndex(columnName));
    }//from   w  ww. jav  a  2  s .  c o  m
}

Related Tutorials