title: Android camera parameter image size
body: <p>Hi Below is how I launch my camera. I'm always getting 320 x 240 as the image size. Any idea on how I can set such that the camera takes the image with the maximum size that the device supports?</p>
  
  <pre><code>      File photo = null;
           String FILE_NAME ="20143";
  Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
  if (android.os.Environment.getExternalStorageState().equals(
          android.os.Environment.MEDIA_MOUNTED)) {
      photo = new File(android.os.Environment.getExternalStorageDirectory(), FILE_NAME);
  } else {
      photo = new File(getCacheDir(), FILE_NAME);
  }    
  if (photo != null) {
      intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo));
      selectedImageUri = Uri.fromFile(photo);
      startActivityForResult(intent, CAMERA_PIC_REQUEST);
  }
  </code></pre>