Android Cursor Read getFloat(String columnName)

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

Description

get Float

Declaration

public float getFloat(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  www  . j a va  2s .c om
    public float getFloat(String columnName) {
        return getFloat(cursor, columnName);
    }
}

Related

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