I want to play the mediaplayer for just 10 sec. How to control it?
You can implement a CountDownTimer that will stop your MediaPlayer. so you will not have to implement a thread or something.