How To Save An Audio File In Internal Storage Android
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
Solution 1:
Use getFilesDir()
SDCardpath = getFilesDir();
myDataPath = newFile(SDCardpath.getAbsolutePath()
+ "/.My Recordings");
// mydir = context.getDir("media", Context.MODE_PRIVATE);if (!myDataPath.exists())
myDataPath.mkdir();
audiofile = newFile(myDataPath + "/" + fileName);
For more see Using the Internal Storage
Post a Comment for "How To Save An Audio File In Internal Storage Android"