I tried code from this record sound. I see that I can release sound using the following code:
private void stopPlaying() {
mPlayer.release();
mPlayer = null;
}
The problem is that I want to release the sound and delete the recorded file. if only use this code I still have the sound file on mFileName with file name is audiorecordtest.3gp.
Anyone know how to delete this file so I can save memory on my phone ?