Camera activity causing uri to go to null when screen orientation changes

后端 未结 3 1996
攒了一身酷
攒了一身酷 2020-12-21 05:04

I set a data member, imageUri, and pass that into an intent that launches the camera activity. In the camera activity I take a picture and the rotate the screen before clic

3条回答
  •  无人及你
    2020-12-21 05:13

    Istvan Jonyer. thank you very much.my problem solved. when i off auto rotate setting in my phone galaxy j510 j5 2016 and rotate camera in landscape i get error. but you help me. i add this code: android:configChanges="keyboardHidden|orientation|screenSize" to manifest file to tag my activity that start camera.

提交回复
热议问题