I have an application with a common Header in all layouts. I want that whenever the user clicks at the the ImageView with id btn_home, the app will go back to a
Extend the Activity class and build a MyActivity class for example. In this MyActivity class you could include the code for the onClick.
Now create a layout that just holds your header. Include that layout in your activity layouts.
Extend all your activities from MyActivity - that's it.
If you need the same behaviour in ListActivities create a MyListActivity as well.