I have four activities, A, B, C and D. app starts with activity A, then it goes to B by using explicit intend, then C and then D in same way. From D, if I want to come back to directly B or A, how it can be done?
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.
in Activity A
in Activity B
in Activity C
Explanation
1)in activity “A” ur starting one fresh activity to “B”
2)in “B” activity ,ur starting one activity to “C” ,using startActivityForResult method
3)in “C” activity ,when u finish,it obviously go to “B” activity,with result code which u set.and if it’s match it will close “B” activity ,and go to “A” activity
4)This is one simple trick to skip one or more activity