can any body explain me How i can Start an Activity For Result and get the result from the activity that i started?
Thanks and Regards
RizN81
can any body explain me How i can Start an Activity For Result and
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.
let you want to call ActivityB from ActivityA
Follow the following steps
Step-1 in activityB set the result
in ActivityB set the result using
setResult()see the sample code for ActivityBstep-2 call activityB from ActivityA
in ActivityA call activityB from activityA using following code
step-3 write the logic you want to perfom after getting result from activityB in activityA
when ActivityB finished control will come to
onActivityResult()method of calling acticity (ActivityA)