Hi, I'm trying to develop a call recording app. This is the code to start recording:
<code> try { MediaRecorder callRecorder = new MediaRecorder(); callRecorder.setAudioSource(AudioSource.VOICE_CALL); callRecorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR); callRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); callRecorder.setOutputFile(recordingPath); callRecorder.prepare(); callRecorder.start(); } catch (Exception e) { .... } </code> I'm facing some problems testing in Galaxy S2 device. It works great on Galaxy S+, and in other phone models it fails, but at least an exception is raised ("start failed" message, not very explanatory). With Galaxy S2 this code hangs in "callRecorder.start();" It never returns. Has anybody found this problem? Any idea about what can be wrong with this code? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en