I think that you need to read some basics about how Android is working especialy how activities are working and the activity lifecycle.
In your sample code the ImageView1 view is in activity
test and not in the main activity. You must load the image in this activity and as ImageView1 is defined in the layout you must not initialize it.
Attached a modified version.
I'm estonished because you already aked almost the same question in another
thread with the pseudo disit10 and there you got an example program but you never answered it!?
Best regards.