title: Why does a blurry image appear in a simple android camera app?
body: <p>I tried to make a simple camera app that captures an image and views the image in an imageview:
  I tried this code in MainActivity:</p>
  
  <pre><code> ImageView myImageView;
  
  public void myButtonCamera (View view){
      Intent cameraIntent = new Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
      startActivityForResult(cameraIntent, 10);
  
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data){
      super.onActivityResult(requestCode,resultCode,data);
      if (resultCode == RESULT_OK){
          if (requestCode == 10){
              Bitmap cameraCapture;
              cameraCapture = (Bitmap)data.getExtras().get("data");
              myImageView.setImageBitmap(cameraCapture);
          }
      }
  
  }
  </code></pre>
  
  <p>The app works and captures the image but it blurs the image after viewing it in the ImageView.
  I tried to put the height and width attributes of ImageView to <code>wrap_content</code> and after testing the app, I noticed that the captured image is very small in resolution! Because the size of viewed image was very small!</p>