Media Player start failed while recording video in android

view story

http://stackoverflow.com – I am trying to record a video in android using media recorder.Its working fine with 4.0 and greater when i am trying the video recording in version 2.3.4 media recorder giving start failed exception -12. Here is my code of media recorder. mrec.setCamera(camera); mrec.setAudioSource(MediaRecorder.AudioSource.MIC); mrec.setVideoSource(MediaRecorder.VideoSource.CAMERA); mrec.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mrec.setVideoEncoder(MediaRecorder.VideoEncoder.H264); (HowTos)