How to get the value of a DB in SQLite on Android as boolean
Asked 1 years ago, Updated 1 years ago, 54 views
Is there a way to get the value of the DB from Android to SQLite in boolean? I usually use getString() or getInt(), but is there a method like getBoolean?
I don't have get Boolean
boolean value = cursor.getInt(boolean_column_index) > 0;
If you give me a formula like this, you can get a boolean-type value.