I am trying to copy a database that I made with SQLite manager, in which I did:
CREATE TABLE \"android_metadata\" (\"locale\" TEXT DEFAULT \'en_US\')
if you see
failed to read row 0,column -1
It means you are trying to read from a column which doesn't exist.
If it cannot find the column name that you specify, Cursor.getColumnIndex()
returns -1
and hence, is invalid.
There are two reasons for this:
Note: the name of the column is CASE SENSITIVE when using getColumnIndex()
In your scenario:
c.getString(c.getColumnIndex(CNAME));
Check that the CNAME variable is spelt correctly, and that a column of that name exists.
String CNAME=" ques"
Should that extra leading white space be there for example..