When I do cursor.getColumnIndex(Database._F_A3) this works as expected.
But if I do this
String dbColumn = "Database._F_A3";
cursor.getColumnIndex(dbColumn );
it gives error.
I believe that this is because getColumnIndex() manages whatever is inside the parenthesis as the string to search in the columns.
Is there any way to do what I want?
favolas
calling above is completely wrong, because it changes the the name that you declared as static in Database class,
suppose you declared in your Database class as,
and now if you call,
So, better try using