I have written this code for recording Calls. It works fine in Android 2.1. In Android 2.2, it creates an output file with 0 bytes.
How I can solve this?
<
Use this snippet
_recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_DOWNLINK | MediaRecorder.AudioSource.VOICE_UPLINK );
instead of
_recorder.setAudioSource(android.media.MediaRecorder.AudioSource.VOICE_CALL);