I'm developing a new android app, and I use a surface to take a picture, and save her. When take a picture and she is saved, when I'm going to folder and open her, the image are inverted.
For exemple: If I take the picture and I'm in a left side of the screen, when I open her, I'm in the right side.
How I solved this?
Bitmap bitmapPicture = BitmapFactory.decodeByteArray(arg0, 0, arg0.length);
try {
bitmapPicture.compress(CompressFormat.PNG, 100, new FileOutputStream("/sdcard/images/image3.jpg"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
That is the code I use to save the pic.