according to your you need to have R.id.januaryButton in activity_month_select layout
if you nead to display image in new window just create another activity with your image layout as contentview, then call the activity with image from the activity with button in the onclick function of button.