views:

24

answers:

0

I'm unable to record audio:

Having a problem with this. Error: (in Eclipse) The method setParameters(String) is undefined for the type MediaRecorder.

This is the piece of code which causes the above error

recorder.setParameters(String.format(
                    "audio-param-sampling-rate=%d",     8000/*mProfile.mAudioSamplingRate*/));

The commented portion is what Google uses for Video Camera and Eclipse doesn't have a problem with that. The 2nd parameter is supposed to be an int. So what is the problem with 8000??