I have a db that is created like this...
public class DataBaseManager extends SQLiteOpenHelper{ Context mContext; private static final String TAG =
Change your old query "SELECT "+colID+ " FROM " + allScreens + " WHERE " + colName + "=" +name; to
"SELECT "+colID+ " FROM " + allScreens + " WHERE " + colName + "=" +name;
"SELECT "+colID+ " FROM " + allScreens + " WHERE " + colName + "='" +name+"'";