A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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%)
Have you checked out
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-2015