I want to know how to pass data from the current Activity to a paused Activity.
Please advise.
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.
Let’s call the paused Activity “A” and the “current” Activity “B”.
The way to have B communicate results to A is for A to call
startActivityForResult()instead ofstartActivity(), and for B to usesetResult()to provide the return value(s). A then receives those return values inonActivityResult().