How to save an audio file in internal storage android

3.3k views Asked by At

I was wondering how can I save an audio file in the Internal storage of my android device. Specifically I would like my app that records sound from the microphone to save this file in the internal storage. I know that for external storage there is something like:

outputFile = Environment.getExternalStorageDirectory()+"/myrecord.3gpp";

Is there anything similar for internal storage also? Thanks!

1

There are 1 answers

1
gunjan luthra On

Try this...

outputFile="/sdcard/myrecord.3gpp";