Im creating activities as following.
A->B->C->D
When i click a button in D i need to go back to the home screen (which is A).
Can anyone suggest me some code to do this.
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.
Do you need to go to android home screen? Then it is a different thing.
But if ‘A’ is the main activity of your application, then you can call activity ‘A’ with FLAG_ACTIVITY_CLEAR_TOP. This will clear all activity above ‘A’ and make top of stack.