I am beginner in android, I just want to know how to get the response from the second activity to which I came from first activity.
Can any body tell me the way to do this? Is it before while calling finish() ?
I would be thankful if any one can show me the code snippet.
You must call the second activity using the
startActivityForResultmethod. In your second activity, when it is finished, you can execute thesetResultmethod where basically you put the result information. Then, on your first activity, you override theonActivityResultmethod.