How can I obtain the value of a boolean field in an SQLite database on Android?
I usually use getString(), getInt(), etc. to get the values of my fields, but there does not seem to be a getBoolean() method.
getString()
getInt()
getBoolean()
It is:
boolean value = cursor.getInt(boolean_column_index) > 0;
548k questions
547k answers
4 comments
86.3k users