get float from Cursor - Android Database

Android examples for Database:Cursor Get

Description

get float from Cursor

Demo Code


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

public class Main {
    public static float getfloat(Cursor c, String columnName) {
        return c.getFloat(c.getColumnIndex(columnName));
    }//from   w  w w  .j av  a 2  s. c  om
}

Related Tutorials