ImageView becomes blank on Screen orientation change

后端 未结 3 534
野趣味
野趣味 2021-01-21 16:58

I am using the below line to set my ImageView.

    Bitmap bm = Media.getBitmap(getContentResolver(), capturedImage);
                    Bitmap bm1=Bitmap.creat         


        
3条回答
  •  迷失自我
    2021-01-21 18:03

    Try adding android:configChanges="orientation|keyboardHidden" to your Activity tag in your AndroidManifest. Take a look here for more details.

提交回复
热议问题