Hi My app uses the actionbar tabhost to host two tabs. The switch between the tabs can be done by the user, or by background activity. Looking through some of the logs I'm getting, I noted that every now and then I get an unhandled exception thrown, and the dumps tell me that the problem occurs when I call ActionBar.SelectTab. Turns out some background activity tell the tab that's currently in front that the other tab needs to be active. So, from the fragment in question, I use a reference to the underlying activity from which I can access the ActionBar, go through all tabs until I found the desired one, and call ActionBar.SelectTab. Naturally, all that happens in a GUI thread (this.Activity.RunOnUiThread(() => call ActionBar.SelectTab here)). It seems my app still runs just fine, but unhandled exceptions are never pretty and I'd like to get to the bottom of this.
I'm not saving any instance state at all in either fragments nor activity, but suspect it has something to do with the FragmentManager doing those things without me being the wiser.
Any ideas? Regards Stephan