Here's my layout design:
MainActivity
|
MainFragment
|
TabHost
|
_____________________
| | | |
Tab1 Tab2 Tab3 Tab4
|
ft.replace(MainActivityContainer, FragmentThatDoesSomething)
|
FragmentThatDoesSomething
As you can see, there's a button that does a ft replace on the main activity container and loads FragmentThatDoesSomething to accomplish a task.
In FragmentThatDoesSomething I want to have a button that goes back to Tab2 of the TabHost and keep the tabs.
I use the activity to transfer data between fragments so in the activity is where I would like to perform some ft transaction to get back to tab2.
What's the easiest way to do this? If I run an ft transaction with the getChildFragmentManager and Tab2's container I run into this problem
because I'm using the support v4 Fragment class.