android - Mediarecorder infolister getting 895 -


I am using MediaRecorder to record user sound in my application and all the time I can test with the actual device I am working and it is working properly. But in some devices it shows a warning. What is the MediaRecorder's OnInfoListener giving me 895. I am using the code

  recorder = new MediaRecorder (); Recorder.setAudioSource (MediaRecorder.AudioSource.MIC); Recorder.setOutputFormat (MediaRecorder.OutputFormat.MPEG_4); Recorder.setAudioEncoder (MediaRecorder.AudioEncoder.AMR_NB); recorder.setOutputFile (getAudioRecordFileName ()); Recorder.setOnInfoListener (infoListener);   

and OnInfoListener

  Private MediaRecorder.OnInfoListener infoListener = New MediaRecorder.OnInfoListener () {@Override Information on Public Zero (MediaRecorder mr, int what, Int extra) {toast. Make Text (Receivective), "Warning:" + What + "," + Extra, Toast. LNNGHIHORAR) Show (); }};   

Here's the problem, what kind of error is it?

I ran into the same problem my device information code 895 means that the recording is ongoing. This means that you do not need to stop recording.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -