Android: How to port ExecuteScalar to Java?
Executes the query, and returns
the first column of the first row in the result set returned by the
query. Additional columns or rows are ignored.
I guess this would make heavy use of generics.
Look at SQLLiteStatement
long simpleQueryForLong()Execute a statement that returns a 1 by 1
table with a numeric value.
String simpleQueryForString()Execute a statement that returns a 1 by 1 table with a text value.