java - How to change the imagebutton over another activity? -
i have onclick method , when click on onclick change imagebutton in mainactivitiy.class
this onclick:
public void onclick8 (view view) { //here should go command change imagebutton in mainactivity.class intent myintent = new intent(view.getcontext(), mainactivity.class); startactivity(myintent); finish(); mediaplayer mediaplayer = mediaplayer.create(zem13.this, r.raw.song); mediaplayer.start(); }
if can please show code set in mainactivity.class , other activity.
use string references , set string activity , when came activity can change image if
Comments
Post a Comment