Android Cursor Read getStringFromCursor(Cursor cursor, String columnName)

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

Description

get String From Cursor

Declaration

private static String getStringFromCursor(Cursor cursor,
            String columnName) 

Method Source Code

//package com.java2s;

import android.database.Cursor;

public class Main {
    private static String getStringFromCursor(Cursor cursor,
            String columnName) {//  w w w . j  a va2 s  . c  om
        return cursor.getString(cursor.getColumnIndex(columnName));
    }
}

Related

  1. getPath(Context context, Uri uri)
  2. getString(Cursor c, String column)
  3. getString(String column)
  4. getPhotoPathByLocalUri(Context context, Intent data)
  5. getIntFromCursor(Cursor cursor, String columnName)
  6. getPositionById(Cursor cursor, long theTargetId)
  7. newClosedCursor()
  8. getDate(Cursor cursor, String columnName)