I was looking at an Android question there asking if the following statement was true..
When startActivityForResult is used to launch a new Activity from your Activity class then your Activity class gets notified when the new Activity is completed.
I was under the opinion, the whole point of startActivityForResult was to notify the calling Activity that the Activity it started has completed and allow data to be returned if wanted.
I am relatively new to Android and I want to get my facts straight.
Any input would be appreciated.
Cheers
this is true,
onActivityResult (int requestCode, int resultCode, Intent data)is called in activity, which started other activity for result – override it to handle resultthats also true, you can set result in activity called for result by calling
setResult (int resultCode, Intent data)– passing Intent data containing extra data – then you can retreive it from Intent data in onActivityResult.