I am trying to build application which records audio from the microphone for the later processing.
Everything works fairly well, except the following problem: During the voice call (in and out) the recorded file gets no audio data, it contains just NULLs.
I am using AudioRecorder and MediaRecorder, both have the same problem. The question is if this is normal API behavior or I am missing something?
Here some additional info: Permissions:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
SDK: minSdkVersion="9" targetSdkVersion="15"
I am testing my application on Nexus S with Jelly Bean.
Thanks in advance!
PS If somebody needs more specific details, please let me know.
EDIT
OK, All answers suggest that this is a normal behavior, but I still puzzled since I can find a lot applications that record voice call, using the microphone. Recording voice call is not my intention, but I thought I can use the microphone even during the voice call. Any suggestions?
EDIT
I just tested the application on Galaxy S Gingerbread and it worked! Now I am really puzzled and starting to understand what word "segmentation" means ...