I have 3 activities. A, B and C. From A to C and B to C. How can i from Activity C find out which activity was loaded previously and refereed to this Activity.
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.
You could handle this through intent bundles. Basically in Activity A or B you launch Activity C as follows:
In Activity C, you retrieve it like
Now I passed the activity name as string, you may include it in some more convenient way, using constants or something like that. You can look it up here.