I have two activities A and B. I am currently in Activity A and from A I an starting activity B. Now After finish the work on B, based on the changes in the activity B I want to update the Activity A.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like startActivityForResult() is what you’re looking for.
Example – Activity A starts Activity B with startActivityForResult(). When Activity B finishes it can return information back to Activity A via onActivityResult().
Google has a code example online: http://developer.android.com/reference/android/app/Activity.html#StartingActivities