Android Cursor Read getInt(String columnName)

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

Description

get Int

Declaration

public int getInt(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 ww  w . jav  a 2s  .co  m*/
    public int getInt(String columnName) {
        return getInt(cursor, columnName);
    }
}

Related

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