I am using a MediaRecorder to create a recording.
Believe it or not, this works on the emulator, but when I run it from my Samsung Galaxy S2, it does not record (or if it does, it does not play back!)
(Seems like the opposite problem from what others have been reporting – where the emulator doesn’t work)
How can I diagnose this and fix it?
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path.getAbsolutePath());
recorder.prepare();
recorder.start();
Try it –