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?

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.