title: Android Low picture quality after shot
body: <p>I have a button that triggers an image capture :</p>
  
  <pre><code>private void capturePicture() {
      if(ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED){
          Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
          // Tiến hành gọi Capture Image intent
          startActivityForResult(intent, 100);
      } else ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.CAMERA}, 200);
  }
  </code></pre>
  
  <p>Right after I take the shot, I see the capture and the resolution is very low. It is  saved in the local storage and when it is displayed in the app it's not in its original quality.</p>
  
  <pre><code>private void loadImageFromStorage(String path, int position, Device device)
  {
  
      try {
          File f=new File(path,device.getSerial()+".jpg");
          Bitmap b = BitmapFactory.decodeStream(new FileInputStream(f));
          imvDeviceImage.setImageBitmap(b);
      }
      catch (FileNotFoundException e)
      {
          e.printStackTrace();
      }
  
  }
  </code></pre>
  
  <p>An here is for the permission</p>
  
  <pre><code> if(ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED){
          Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  
          startActivityForResult(intent, 100);
      } else ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.CAMERA}, 200);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/e6Nhb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e6Nhb.png" alt="After shooting"></a>
  <a href="https://i.stack.imgur.com/D2PSZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D2PSZ.jpg" alt="In the app"></a></p>