Previous time I asked a question here I learned a lot so I guess it\'s worth a shot to try it again.
I am using the lazy list by Fedor from this link: Lazy load of i
A listItemClickListener is attached to a ListView
. When you changed ListActivity
to Activity
, your class no longer has a view associated with it and thus an Activity
class has no idea what to do with an onListItemClickListener.
You just have to attached a listener to your ListView
:
listview.setOnItemClickListener(new OnItemClickListener(){
@Override
protected void onListItemClick(AdapterView> parent, View view, int position, long id){
//Do stuff
}
});