Activity started with startActivityForResult() not returning to calling Activity

前端 未结 3 1051
悲哀的现实
悲哀的现实 2021-01-17 21:22

I have 3 Activities - A, B, and C.

In a nutshell, Activity A starts Activity B, then A also starts Activity C and

3条回答
  •  野的像风
    2021-01-17 21:46

    I was never able to get this to work, so I ended up using a Handler instead to return the data to the necessary Activity.

    UPDATE: After running into this again, I found out that the real reason this wasn't working is because I had android:noHistory="true" for the calling/receiving Activity A in the manifest. Removing android:noHistory="true" fixed it, but if you need it to be true, then Handlers are a good workaround.

提交回复
热议问题