I am trying to switch between two already started activities in android. I want switch between them like I want to put one in background and second in front and then on an event vice versa. Is it possible if so how?
Thanks
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.
For your requirement use Fragments instead of creating different Activities, for this you have to extend your class by FragmentActivity instead of Activity.
Find below link for example on Fragment.
https://stackoverflow.com/questions/5710573/need-a-fragments-example