title: MediaRecorder setVideoSize shows different behaviour in different devices
body: <p>I am using media recorder to record video in an android app. </p>
  
  <pre><code>mMediaRecorder.setCamera(mServiceCamera);
  mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
  mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
  mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
  
  //mMediaRecorder.setVideoSize(mPreviewSize.width, mPreviewSize.height);
  
  mMediaRecorder.setVideoFrameRate(30);
  mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT);
  mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);  
  String file_name = Environment.getExternalStorageDirectory().getPath() +"/myVideo.mp4";   
  mMediaRecorder.setOutputFile(file_name);    
  mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface());
  mMediaRecorder.prepare();
  mMediaRecorder.start();
  </code></pre>
  
  <p>The  problem is in the line</p>
  
  <pre><code> mMediaRecorder.setVideoSize(mPreviewSize.width, mPreviewSize.height);
  </code></pre>
  
  <p>In HTC and Xperia, setVideoSize works fine (Will work only if I don't comment this line).
  But in Nexus and Note, setVideoSize won't work( Will work only if I comment this line).</p>
  
  <p>What should I do in order for the app to run in all these devices correctly??</p>