So I have this activity in my app which's supposed to take a picture and then send it to another activity. I forced the orientation to be on portrait mode, and yet, after I take a picture and decode it into a bitmap, it rotates in a seemingly random direction, since I'm unable to fix it by rotating the image by a certain number of degrees. Any idea why?
public void onPictureTaken(byte[] data, Camera camera) {
bmp=BitmapFactory.decodeByteArray(data, 0, data.length );
};