Taking picture with Android app rotation fail - always in lanscape layout

view story

http://stackoverflow.com – I've been straggling for hours to fix this issue but I don't have a clue how to fix it. When I take a picture on the phone, with Android app the image is not properly rotated, it is always in landscape no matter what I do. Any help would be really appreciate. here is the code how I call camera app: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, mPictureFileUri); startActivityForResult(intent, REQUEST_PHOTO); here is the on ActivitiResult method: public void onActivityResult(int requestCode, int resultCode, Intent data){ if(resul (HowTos)