The problem is that you need use two Classes with the same name. You will need to use something like this:
listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
// Your code here
}
});