get Float from Cursor by column name - Android Database

Android examples for Database:Cursor Get

Description

get Float from Cursor by column name

Demo Code


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

public class Main {
    protected static float getFloat(Cursor mCursor, String column) {
        return mCursor.getFloat(mCursor.getColumnIndex(column));
    }// www.  j  a v  a 2  s.c  o m
}

Related Tutorials