I am developing a simple calculator for a device, there I am using mediaplayer to play some sound when a button is pressed using
media=MediaPlayer.create(this, R.raw.wipe);
media.start();
and in a reset button i am releasing it with
media.release();
but after some button clicks it stops playing any sound. How can I fix this problem?
try like this,
On reset button write like: