Here's a way my friend told me to solve this problem. Using getSupportFragmentManager
. He told me also that creating an Activity
or Fragment
using its constructor isn't applicable on the Android platform. So I switched by to the conventional way of adding tabs to FragmentTabHost
.
@Override
public void onBackPressed() {
//tabs.get(fTabHost.getCurrentTabTag()).clicked();
((Selection) getSupportFragmentManager().findByFragmentByTag(fTabHost.getCurrentTabTag()).clicked();
}