I\'ve made a simple app in android with list View,In that i want to make a toast when select an item,i have tried as below but its not working..
my code is as below:
I am so confused on what you are doing, why don't you just do it like this:
String selectedValue = items[position];
instead of:
String selectedValue =(String) (lv.getItemAtPosition(position));