android - How do I play an animation through a button that is already set up to play music? (eclipse) -
as said in title, have set button play specific music, want activate animation existing imageview play along (for case, sheet music piece of music) , revert original imageview if button repressed (stopping music) or when song finished. the code activity button here: package net.zachapps.sheetmusicapp; import android.app.activity; import android.media.mediaplayer; import android.os.bundle; import android.view.view; import android.widget.button; import android.widget.imageview; public class eldoradoscore extends activity { button btneldorado; imageview imgscore; mediaplayer songeldorado; int playing; @override protected void oncreate(bundle savedinstancestate) { // todo auto-generated method stub super.oncreate(savedinstancestate); setcontentview(r.layout.eldoradoscore); btneldorado = (button)findviewbyid(r.id.btneldorado); btneldorado.setonclicklistener(beldorado); songeldorado = new mediaplayer(); songeldorado ...