Android Cursor Read getIntFromCursor(Cursor cursor, String columnName)

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

Description

get Int From Cursor

Declaration

private static int getIntFromCursor(Cursor cursor, String columnName) 

Method Source Code

//package com.java2s;

import android.database.Cursor;

public class Main {
    private static int getIntFromCursor(Cursor cursor, String columnName) {
        return cursor.getInt(cursor.getColumnIndex(columnName));
    }/*w w  w.  jav a  2s .  c o  m*/
}

Related

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