Android Cursor Read getInt(Cursor cursor, String columnName)

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

Description

get Int

Declaration

public static int getInt(Cursor cursor, String columnName) 

Method Source Code

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

public class Main{
    public static int getInt(Cursor cursor, String columnName) {
        return cursor.getInt(cursor.getColumnIndex(columnName));
    }//from  w  w  w.j a va  2  s  .c o m
    public int getInt(String columnName) {
        return getInt(cursor, columnName);
    }
}

Related

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