title: Is it possible in android to record the call during incoming or outgoing calls
body: <p>In android is it possible to record voice call during incoming/outgoing calls without open the speaker of mobile. I had seen a application in the android market. It does not correctly record other side voice without opening the speaker because it uses mic for recording purpose. May it be done by some other techniques?</p>
  
  <pre><code>final MediaRecorder callrecorder = new MediaRecorder();
  
  callrecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
  callrecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
  callrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
  callrecorder.setOutputFile(recordPath);
  callrecorder.prepare();
  callrecorder.start();
  </code></pre>