Ovi
Ovi

Reputation: 362

Android : Call Recording error if existing recorder app engage in recording

        recorder = new MediaRecorder(); 
        recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
        recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
        recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
        fileName = FileHelper.getFilename(phoneNumber);
        recorder.setOutputFile(fileName);
        recorder.start();

It works perfectly in my device .But when i have another recording application it is unable to record the audio says "Another application is trying to record".

Upvotes: 1

Views: 103

Answers (1)

Jamshed Alam
Jamshed Alam

Reputation: 12854

It's not possible. It's a singleton method.

Upvotes: 1

Related Questions