Deep Dive into Activity Results API — No More onActivityResult()
ActivityResultContracts by Examples

Since Android came into existence in 2007, Activity
has been one of its core components. One of the most common tasks in apps is transferring data between two Activities. Until now, Intents
and onActivityResult
were the only choice.