A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
android mediarecorder prepare failed
Joined: Oct 15, 2011
Aug 31, 2012 00:20:55
I am making an app which records sound. This is the code that i'v written-
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR); mRecorder.setOutputFile(sFileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mRecorder.prepare(); mRecorder.start();
The code works fine sometimes and sometimes it gets crashed. I'm not getting why it happens. Please help...
Astha - OCPJP 6 (90%)
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: android mediarecorder prepare failed
problem comparing strings...
Issues with beginners java
Command to find out Linux desktop version?
No Current Row in the ResultSet when Migrating from SQL 2000 to 2005
Lost text when editing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014