I have 5 activity in back stack. At a time, I want to remove 4 child activity from back stack. how can I do this? i dont want to finish each activity by hand. is there any method which can make my back stack empty?
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 can start your fifth activity with the
FLAG_ACTIVITY_CLEAR_TOPflag.