Android Cursor Read getLong(String columnName)

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

Description

get Long

Declaration

public long getLong(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));
    }//from  www  .  j a va  2s  .  c  o m
    public long getLong(String columnName) {
        return getLong(cursor, columnName);
    }
}

Related

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