The query should work in much the same way as - ActiveAndroid still shortens your SELECT to SQL.
For example, the following LIKE request works for me:
public static List<Record> search(String searchTerm) { return new Select().from(Record.class) .where("Data LIKE ?", new String[]{'%' + searchTerm + '%'}) .orderBy("Name ASC") .execute(); }
where the search query is "% searchTerm%"
If you are having difficulty, you can directly query DB, that is:
mRecordList = SQLiteUtils.rawQuery(Record.class, "SELECT * from Records where Data LIKE ?", new String[]{'%' + searchTerm + '%'}); */
source share