I want to use MediaRecorder to record voice, my code is:
public void record(View v) {
Log.d(TAG, \"record\");
this.mediaRecorder.setAudioChannel
This Exception will be raised . if any of the following things failed:
file not found: Ensure that output file location that yu have specified is existing, otherwise it will throw you filenotfoundexception
Write Permission: You must specify Write permission in your manifest file.
Record permission : specify Record permission in your manifest file.
you can use this..
Still you get error.. try display the error. Like this
try{
mRecorder.prepare();
} catch (IOException e) {
Log.e(LOG_TAG, "prepare() failed");
System.out.println(""+e); //to display the error
}
mRecorder.start();