In android I have an TabActivity (A) in which I create a single tab called loading with the Activity B.
From Activity B I modify the TabWidget from TabActivity A to add some more tabs via a static reference to the TabHost in TabActivity A.
After I start a new activity C and then press BACK the TabWidget has only one single tab called Loading.
I've tried in the onResume method of Activity B to recreate the tabs but it doesn't work anymore.
Does anyone know why does it do this and how can I fix it?