I have an annoying problem with TabActivity. I have several activities in it and when I switch between them each of them gets recreated and loses all its info 🙁
I’ve tried using android:launchMode="singleTop" but no luck 🙁
Any clues?
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.
Here is a sample project showing the use of activities in tabs that does not suffer from the problem you cite.
Even better would be to get rid of the activities and just use views as the contents of your tabs, as that will save RAM, CPU, and battery life. See this project for a sample.