I have a listview with custom strings populated from a custom BaseAdaptor . When I click on any line, I open a new Activity . Everything worked fine until I added filter functionality to this list. When I look at the list and THEN clicks on Item, it does not open the activity associated with the filtered results. It opens the action related to the item at this position in the Source List.
Eg. - Initial List: AA, BA, CC, DA, ED, FF
Search: 'A' Filtered Results: AA, BA, DA
But when I click on the DA element, it opens the Activity for CC . Extremely annoying. I typed notifyDataSetChanged() on the adapter.
I was once stuck with this problem. I really don't know how to solve this. I did not publish the code because it contains a lot of code, and I really do not want to post everything here.
If someone can give me an idea on how to select an item from the FILTERED list .. That would be great.
Thanks! Tell me if something else is needed to understand my question!
source share