I am using the below line to set my ImageView.
Bitmap bm = Media.getBitmap(getContentResolver(), capturedImage); Bitmap bm1=Bitmap.creat
Try adding android:configChanges="orientation|keyboardHidden" to your Activity tag in your AndroidManifest. Take a look here for more details.
android:configChanges="orientation|keyboardHidden"