Camcoder profile not returning correct result?
<p>I am working on android video capturing for API>=10. but camcorder profile not returning correct resolution.when i am taking video with default camera, high resolution is 640*480 but CamcorderProfile.QUALITY_HIGH returning 352*288.Framerate value is also wrong.</p>

<pre><code>private boolean prepareMediaRecorder() {
    mediaFile = new File(filepath + File.separator + fileName + ".mp4");
    mCamera = getCameraInstance();
    this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
    if (isFlash) {
        mCamParameter = mCamera.getParameters();
        mCamParameter.setFlashMode(Parameters.FLASH_MODE_TORCH);
        mCamera.setParameters(mCamParameter);
    }
    mRecorder = new MediaRecorder();
    mCamera.unlock();
    mRecorder.setCamera(mCamera);
    mRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
    mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
    CamcorderProfile myCamcorderProfile = CamcorderProfile
            .get(CamcorderProfile.QUALITY_HIGH);
    if (quality.equals("HIGH")) {
        mRecorder.setProfile(myCamcorderProfile);
    } else {
        mRecorder.setProfile(CamcorderProfile
                .get(CamcorderProfile.QUALITY_LOW));
    }
    System.out.println("amrendra " + " audioBitRate = "
            + myCamcorderProfile.audioBitRate + " audioChannels = "
            + myCamcorderProfile.audioChannels + " audioCodec = "
            + myCamcorderProfile.audioCodec + " audioSampleRate = "
            + myCamcorderProfile.audioSampleRate + " duration = "
            + myCamcorderProfile.duration + " fileFormat= "
            + myCamcorderProfile.fileFormat + " quality = "
            + myCamcorderProfile.quality + " videoBitRate = "
            + myCamcorderProfile.videoBitRate + " videoCodec = "
            + myCamcorderProfile.videoCodec + " videoFrameHeight = "
            + myCamcorderProfile.videoFrameHeight + " videoFrameRate = "
            + myCamcorderProfile.videoFrameRate + " videoFrameWidth = "
            + myCamcorderProfile.videoFrameWidth);

    mRecorder.setOutputFile(mediaFile.toString());
    if (duration &gt; 0)
        mRecorder.setMaxDuration(duration * 1000); // Set max duration
    mRecorder
            .setPreviewDisplay(mCameraSurfaceView.getHolder().getSurface());

    try {
        mRecorder.prepare();
    } catch (IllegalStateException e) {
        Log.d(VTAG, "Prepare failed");
        releaseMediaRecorder();
        return false;
    } catch (IOException e) {
        releaseMediaRecorder();
        return false;
    }
    return true;
}
</code></pre>
