Skip to content Skip to sidebar Skip to footer

Searching Through ListView Item And Database On Android

I tried this code but it's too time-taking to iterate through all the list item. item_all is a list which contains data I got from the database. et_Search.addTextChangedListener(ne

Solution 1:

Try to use contains() instead of equalsIgnoreCase().

 if (getItemDesc(i).length() >= textlength
                            && getItemDesc(i)
                                    .contains(getSearchText()));

This might help you. :)


Post a Comment for "Searching Through ListView Item And Database On Android"