I have a query that selects rows in a ListView
without having a limit. But now that I have implemented a SharedPreferences
that the user can select how much rows will be displayed in the ListView
, my SQLite query doesn't work. I'm passing the argument this way:
return wDb.query(TABELANOME, new String[] {IDTIT, TAREFATIT, SUMARIOTIT}, CONCLUIDOTIT + "=1", null, null, null, null, "LIMIT='" + limite + "'");