this is one way.
i use it quite a lot though i use my own adapter (inheriting from BaseAdpater).
Another way would b like the above to have an index (0,1,2 etc ) mappd to a value and when you get an item get it's index a well so you can retrieve it's value fro mthe map.
I like that option less...