onActivityResult method not being called Android

前端 未结 9 1743
误落风尘
误落风尘 2020-12-08 07:58

I am trying to send data from child activity to parent. But somehow, onActivityResult(..) is not getting called. here is code

Parent activity

selecte         


        
9条回答
  •  猫巷女王i
    2020-12-08 08:19

    My case was a little bit complex and I realized that I used by error a static reference pointing to the first instance of the buttons listeners in a sub activity.

    At the first turn it was working, but when the user was returning from the parent activity, onActivityResult was not called.

    Replacing the static references was the fix

提交回复
热议问题