Android Media Player Wont Play After Stop
to play song again reset media player, set data source again and start
mp.reset();
mp.setDataSource(MEDIA_PATH);
mp.prepare();
mp.start();
When press play button after stop ,then play button never works--for this problem we can create object again in stop button. for eg;-stop.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if(mPlayer.isPlaying())
mPlayer.stop();
mPlayer = MediaPlayer.create(mediaplayeractivity.this, R.raw.adidas);
}
});}