I set an image I took with my phone's camera into an imageView but it changes its orientation to 90 degrees. If I check the image in my phone it is just in portrait mode and if I put it in the Imageview it changes to landscape mode.
Code where I set the image on my ImageView:
Bitmap bitmap = BitmapFactory.decodeFile(imgPath);
Bitmap bt=Bitmap.createScaledBitmap(bitmap, 500, 800, false);
imgView.setImageBitmap(bt);