Getting a result from an activity
Hi, I'm Chidi, I've a non-traditional background spanning over 10 years, combining technical expertise and leadership. My journey began as an Android ROM developer, where I accumulated 3 years of experience in upgrading and jail breaking the firmware of android devices. This then paved the way for my next 7 years in mobile development and leadership roles. My career has allowed me to contribute as a software instructor which lead me to starting my own startup. Beyond my professional endeavors, I've a relentless drive for learning and understanding the business side of things, with a passion for mentoring others and a commitment to doing the right thing. This has guided my career and continue to shape my approach to technology and business.
Starting another activity, whether one within your app or from another app, doesn't need to be a one-way operation. You can also start another activity and receive a result back. For example, your app can start a camera app and receive the captured photo as a result. Or, you might start the Contacts app in order for the user to select a contact and you'll receive the contact details as a result.
While the underlying startActivityForResult() and onActivityResult() APIs are available on the Activity class on all API levels, it is strongly recommended to use the Activity Result APIs introduced in AndroidX Activity 1.2.0-alpha02 and Fragment 1.3.0-alpha02.
The Activity Result APIs provide components for registering for a result, launching the result, and handling the result once it is dispatched by the system.

