How to go back from calling intent

前端 未结 3 1571
隐瞒了意图╮
隐瞒了意图╮ 2021-01-01 02:27

I call camera to take a picture. But I cannot go back to my own original activity after taking the picture. What\'s the problem? Thank you.

    public void a         


        
3条回答
  •  暖寄归人
    2021-01-01 02:55

    On some devices data will unfortunately be null in onActivityResult after calling the camera activity. So you may need to save your state in your activity's variables, and them read them in onActivityResult. Be sure to save these variables in onSaveInstanceState and restore them in onCreate.

提交回复
热议问题