I need you help: I want to putExtra data to the previous activity before finishing the current activity.
Eg: Activity A start Activity B When I finish Activity B I want in Activity A new data.
How I can do that? Many thanks before
I need you help: I want to putExtra data to the previous activity before finishing the current activity.
Eg: Activity A start Activity B When I finish Activity B I want in Activity A new data.
How I can do that? Many thanks before
Android SDK explanation here, better SO question answer+example here.
Use
startActivityforResult
to open the activity B..then overrideonActivityResult(int, int, Intent)
in your activity A..Example:
check http://developer.android.com/reference/android/app/Activity.html
Use startActivityforResult to start Activity B. Implement override onActivityResult(int, int, Intent) method in Activity A and setResult in ActivityB.
Example: