i have a listactivity app , consist of 5 rows , each row cotain one TEXT and 5 BUTTON , both text and buttons are clickable , text will open MyDay activity whic is textview and
You get same video for all the ones, same video for all the twos so on, because you have the same ID for all the ones in all the rows and so on.
So, do this in the onClick:
public void onClick(View v) {
String night = null;
int position = yourListView.getPositionForView((View) v.getParent())
for (int i = 0; i < ids.length; i++) {
if (v.getId() == ids[i]) {
night = mData[i];
break;
}
}
}
now add this position also as an Extra to your intent. So that you will know which row's one is clicked and so on.