Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mediaplayer gets hanged
- public void onClick(View v)
- {
- if(count==listlen)
- count=-1;
- if(count<listlen)
- {
- count=count+1;
- }
- loadpitch(concatstr);
- }
- try
- {
- if(sp.isChecked()||sm.isChecked())
- {
- mp.reset();
- mp=MediaPlayer.create(this,resID);
- mp.setLooping(true);
- }
- if(play==true)
- {
- mp.start();
- }
- }
- if (mPlayer!=null) {
- mPlayer.stop();
- mPlayer.release();
- }
- mPlayer= MediaPlayer.create(YourActivity.this,song);
- mPlayer.start();
Add Comment
Please, Sign In to add comment