If you name imageview of each activity with same name: imageview1
then how you know into your app what object fires event imageview1_click?
The sample i upload has different names for each imageview, so you can put code for
each event.
hope this help and could be a start point to solve the problem.