From your describe I understand that the lists are showed up when you start the application.
The position parameter, holds where the user clicked on the (screen) - list.
Did you try to use it with switch case?
I mean like this:
list.setOnItemClickListener(new OnItemClickListener(){
public void onItemClick( AdapterView <?> parent, View view, int
position,long id){
switch(position){
case 0:
// write what you need here when the user clicks on the first list item
break;
case 1:
// write what you need here when the user clicks on the 2nd list item
break;
}
}
};
hope this will help you