I want to have an OnItemClickListener for a ListView I create using an ArrayAdapter
This is the code I use to create it:
List values =
i'm using arrayadpter ,using this follwed code i'm able to get items
String value = (String)adapter.getItemAtPosition(position);
listView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView> parent, View view,
int position, long id) {
String string=adapter.getItem(position);
Log.d("**********", string);
}
});