Which method should you use to start a sub-activity?
Which method should you use to start a sub-activity?
To start a sub-activity and later receive a result from it, you should use startActivityForResult(Intent intent, int requestCode). This method allows you to launch an activity and then handle the result in the onActivityResult callback method. It is the appropriate method for initiating a sub-activity when you want to get a result back from the activity you started.
B. startActivityForResult(Intent intent , int requestCode)