I'm using the following code below for an application.
I want to get imageview
i1
to appear on an other activity. How can I do this?
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_question1);
monwin = MediaPlayer.create(this,R.raw.mysound);
monlose = MediaPlayer.create(this,R.raw.mywrong);
bt1 = (RadioButton) findViewById(R.id.rd1);
bt2 = (RadioButton) findViewById(R.id.rd2);
i1 = (ImageView) findViewById(R.id.c1);
bt1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (bt1.isChecked()){
i1.setVisibility(View.INVISIBLE);
monlose.start();
}
}
}
}