I have implemented the search bar in my app and it´s working fine, but at the moment I also want to show an icon at the right side of a custom suggestion.
developer.android.com says that I have to add a Column "SUGGEST_COLUMN_ICON_2" with a reference to the images.
The Problem is that I don´t know how to add this to my cursor because this can´t be done by sql.
The images I want to set depends on which value a certain column (status) of my curser has got.
String sql="SELECT U._id, U.name AS suggest_text_1, C.status FROM table1 AS U LEFT OUTER JOIN table2 AS C ON U.number=C.number WHERE suggest_text_1 LIKE \"%"+selectionArgs[0]+"%\" ORDER BY suggest_text_1 ASC"
The images I want to use are in the drawable folder.
table1 has got: _id, name, number
table 2 has got: _id, number, status, ....