title: How rotate picture from "onPictureTaken" without Out of memory Exception?
body: <p>I read many posts there? But i don't find correctly answer. </p>
  
  <p>I try do something this:</p>
  
  <pre><code>@Override
  public void onPictureTaken(byte[] paramArrayOfByte, Camera paramCamera) {
      try {
  
  
          Bitmap bitmap = BitmapFactory.decodeByteArray(paramArrayOfByte, 0,
          paramArrayOfByte.length);
  
          int width = bitmap.getWidth();
          int height = bitmap.getHeight();
  
          FileOutputStream os = new ileOutputStream(Singleton.mPushFilePath);
  
          Matrix matrix = new Matrix();
          matrix.postRotate(90);
          Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, width,
              height, matrix, false);
  
          resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 95, os);
          os.close();
          ...
  </code></pre>
  
  <p>Is there a way to rotate picture, without using BitmapFactory? I want rotate picture without loss of quality!</p>