Android Cursor Read getLong(Cursor cursor, String columnName)

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

Description

get Long

Declaration

public static long getLong(Cursor cursor, String columnName) 

Method Source Code

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

public class Main{
    public static long getLong(Cursor cursor, String columnName) {
        return cursor.getLong(cursor.getColumnIndex(columnName));
    }// w w w.  j  a  v a 2s. c o m
    public long getLong(String columnName) {
        return getLong(cursor, columnName);
    }
}

Related

  1. getFloat(Cursor cursor, String columnName)
  2. getFloat(String columnName)
  3. getInt(Cursor cursor, String columnName)
  4. getInt(String columnName)
  5. getLong(Cursor c, String column)
  6. getLong(String column)
  7. getLong(String columnName)
  8. getPath(Context context, Uri uri)
  9. getString(Cursor c, String column)