Tuesday, May 29, 2012

[android-developers] Why mediaRecorder.start(); goes in infinite loop, on some of android phone like S2 with o/s 2.3.6?

Hi,
I have been doing call recording it is working fine, but on some android phone one of them is Samsung S2 with o/s 2.3.6
has been giving abnormal behaviour.
This is my code snap

        //mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);// working for this.
        mediaRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);// infinite loop on .start().
        mediaRecorder.setOutputFormat(audioformat);
        mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
        mediaRecorder.setOutputFile("my file path");
            mediaRecorder.prepare();
           Log.d(TAG, "Before .start() method");
            mediaRecorder.start();
            Log.d(TAG, "After .start() method");

with AudioSource VOICE_CALL (value 4), mediaRecorder.start(); is neither executing nor throwing exception.

in my log, I am able to see only
Before .start() method., neither below one nor catch() logs.


Can any one help me to short out problem?  is there any trick that I have been missing?


Regards
Imran Ali

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate