0

I have a FragentActivity lets say 'X' in tabhost.Now i want to make it work as activitygroup how can i start another activity 'Y' from this fragmentActivity so that it become part of that tab. The problem is if activity extends ActivityGroup,the getFragmentManager() function becomes undefined and in case of extending with FragmentActivity i cannot start a next activity withan that tabhost.Help me if someone knows the solution.

Hamza Khalil
  • 481
  • 1
  • 7
  • 18

1 Answers1

0

ActivityGroup is deprecated as per this documentation.

Solution:

I would insist to use Fragment and FragmentManager to implement same feature in your app. You may have a look at this example to achieve the same behavior.

I hope it will be helpful.

Community
  • 1
  • 1
Mehul Joisar
  • 15,348
  • 6
  • 48
  • 57