Android docs now recommend using this new registerForActivityResult API in favor of the old one, onActivityResult; we can dive deep into how this new API has made part of development seamless. Also, one can define a custom contract so that the consuming app can get results as a sealed class rather than as an intent.

Leave a Reply