views:

23

answers:

0

I am using ListView with ArrayAdapter to filter items in list. I have implemented onListItemClick() method to get clicked item position and call second activity using that value.

For example I have countries in my list:

Australia

Belgium

Botswana

Belize

...

Belgium has position 1 here.

However, if i type "Be" to filter items, I get one item as a result:

Belgium

Now if I click on this item, I get position 0 in onListItemClick(). But this behavior does not fit my needs. How can I get this item's unfiltered position (eg. 1 instead of 0)?