An invisible count when reproducing audios in Android Studio -


i'm using several audio files in app. when click button, can hear 1 of them. however, after hearing 7 of them, can't hear anymore. can it? there code:

 @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_principal);          btn1 = (button) findviewbyid(r.id.button);          mp1= mediaplayer.create(principal.this, r.raw.a);          btn1.setonclicklistener(new view.onclicklistener() {             @override              public void onclick(view v) {                 mp1.release();                 mp1= mediaplayer.create(principal.this, r.raw.a);                 mp1.start();             }         }); 

it's same each audio. bug or doing wrong?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -