android Camera : take picture in portrait

view story

http://stackoverflow.com – I am trying to simply take a picture and present it in an ImageView, i want to set it into portrait mode. although I've set my screenOrientation as portrait mode in android, but the image that displayed in ImageView, always show in landscape mode not in portrait mode, I have follow this way, but it still displayed in landscape mode, this is my code : case R.id.capture_dp: final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, setImageUri()); startActivityForResult(intent, TAKE_PHOTO_CODE) (HowTos)