Vijay, recorder.setOutputFile ("/ sdcard /"); sets the directory, not the file. Replace it as follows:
mFileName = Environment.getExternalStorageDirectory().getAbsolutePath(); mFileName += "/youraudiofile.3gp";
Using hardcodes "/ sdcard" is a fragile way, so use the above
In addition, for this you need to add
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
to your AndroidManifext.xml
Djc
source share