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:
You can take the adapter and take value from it.
public void onItemClick(AdapterView> arg0, View arg1, int position, long arg3) String selectedValue =(String) (lv.getAdapter().getItem(position)); Toast.makeText(getApplicationContext(),Toast.LENGTH_LONG).show(); }