I want to create listview. I got the value from the JSON. Here I got the value from the json into listview but i can\'t get the onItemclickListener method. Why this is
Try this :
contests_listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView> parent, View view,int position, long id) {
String item = (String) contests_listView.getItemAtPosition(position);
Toast.makeText(this,"You selected : " + item,Toast.LENGTH_SHORT).show();
}
});