getSelectedItem()
is actually quite useless for ListView
. getSelectedItem
is defined in AdapterView, so there are other widgets that make better use of this method.
If you need to access the current item when it's selected, set the appropriate OnItemClickListener
or OnItemLongClickListener
.