onActivityResult never called

后端 未结 9 1055
梦谈多话
梦谈多话 2020-12-17 10:04

So far, I used the startActivity function with success and now that I need to use the startActivityResult, I have a problem.

When using this function, the activity

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 10:32

    In my case, I didn't realize I was calling startActivityForResult from an activity that had the android:noHistory attribute set to true in the manifest. Therefore, the onActivityResult was never called as there was no activity instance anymore.

提交回复
热议问题