Is there a straightforward way to query an SQLiteDatabase
with selection args that are not String
types?
Particularly: if the arg is a byte[]
type?
The closest thing I can find is SQLiteDatabase.compileStatement()
, which returns an SQLiteStatement
you can call bindBlob
etc. on. Unfortunately SQLiteStatement
isn't good for querying because it doesn't return a cursor.
SQLiteCursor
looks promising but I can't figure out how to use it.