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
ListView
SharedPreferences
Due to this bug which also doesn't allow for negative limits
8,-1
I had to use this workaround
SQLiteQueryBuilder builder = new SQLiteQueryBuilder(); builder.setTables(table); String query = builder.buildQuery(projection, selection, null, null, null, sortOrder, null); query+=" LIMIT 8,-1";