i want to start activityB from activityA and return string from activityB then resume activityA is it possible?
i refer Android: Capturing the return of an activity
i want to start activityB from activityA and return string from activityB then resume
Share
You can use startActivityForResult() method if you need to pass data back from an activity.
E.x: return data from Activity B
Activity A:
Step1:Call StartActivityForResult() method
Step2:
You must implements onActivityResult(int requestCode,int resultCode,Intent data) method
Activity B:
Note: instead of using setData method(), you also able to use putExtras(Bunble object) to send data.