title: Why am I getting low res photos when taking pictures using an app in android?
body: <p>When I'm taking pictures using the camera functionality in my app, it's returning a low res image even though the camera preview is a good resolution. My code for calling the code is:</p>
  
  <pre><code>final Button takePicButton = (Button) findViewById(R.id.takePicButton);
      takePicButton.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
              Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
              startActivityForResult(cameraIntent, REQUEST_CAMERA);
          }
      });
  </code></pre>
  
  <p>My code for the activity result is:</p>
  
  <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (requestCode == REQUEST_CAMERA &amp;&amp; resultCode == Activity.RESULT_OK) {
          Bitmap photo = (Bitmap) data.getExtras().get("data");
          imageView.setImageBitmap(photo);
  </code></pre>