Android Cursor Read getFloat(Cursor cursor, String columnName)

Here you can find the source of getFloat(Cursor cursor, String columnName)

Description

get Float

Declaration

public static float getFloat(Cursor cursor, String columnName) 

Method Source Code

import android.database.CharArrayBuffer;
import android.database.Cursor;
import android.provider.BaseColumns;

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

Related

  1. getBlob(String columnName)
  2. getDouble(Cursor cursor, String columnName)
  3. getDouble(String columnName)
  4. getFileFromUri(Uri uri, Activity activity)
  5. getFileNameFromUri(Uri uri, Activity activity)
  6. getFloat(String columnName)
  7. getInt(Cursor cursor, String columnName)
  8. getInt(String columnName)
  9. getLong(Cursor c, String column)