Activities
- Activity
A
: content list - Activity
B
: player
Flow
Activity A
==> Activity B
- Activity
A
launches ActivityB
usingstartActivityForResult
- Activity
B
might go into Picture-in-Picture mode - Activity
B
callssetResult
and thenfinish
onActivityResult
from ActivityA
is called
Issue
When Activity B
goes into Picture-in-Picture, onActivityResult
isn't called.
I know that Activity B
detaches from Activity A
's task stack when it goes into Picture-in-Picture, but I would expect the startActivityForResult
to behave as expected. Is this a bug or is it expected ?
Any workaround would be appreciated. Also, my last resort is to re-do it all and use internal broadcasting to communicate both Activities. Feel free to comment on that as well.
Thanks!