How can I count the number of columns in a table in a sqlite database in Android?
A query returns a Cursor which has methods like getColumnCount().
Cursor