alorma
12/23/2025, 10:57 AMActivityResultContracts
Let's say we have ScreenA, ScreenB, ScreenC (inOrder)
When user navigates to B, then C and perform some actions, the C is closed with setResult, then B (though ActivityResultLauncer<C> receives it. And closed itself with it's own setResult.
Therefore A will receive result<B> , and perform some action (notify user about an action.
That flow works fine for now...
BUT
When we receive a deeplink, we parse it on custom router activity, and we launch the stack of intents directly
A >> B, so, user as B closes will go to A...
The problem we are facing is that. As B has not been launched through ActivityResultLauncher from A, A never receives the result when C/B is closed...
A already on stack with it's own Intent()
So.... the question is... Is there a way to "force"
ActivityResultLauncher<B> to receive results even if not used to launch B?Chrimaeon
12/23/2025, 11:20 AMJack Boswell
12/23/2025, 11:50 AMalorma
12/23/2025, 11:59 AM