I am playing with fragments in Android.
I know I can change a fragment by using the following code:
FragmentManager fragMgr = getSupportFragmentManag
Well, this question got lots of views and attention but still did not contained the easiest solution from my end - to use getFragments().
List fragments = getSupportFragmentManager().getFragments(); mCurrentFragment = fragments.get(fragments.size() - 1);