How to get the value of a DB in SQLite on Android as boolean

Asked 2 years ago, Updated 2 years ago, 69 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?

sqlite boolean android java

2022-09-22 08:05

1 Answers

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.


2022-09-22 08:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.