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.
Asked
Active
Viewed 29 times
0
-
use setup() method with a custom LocalActivityManager class object – pskink Sep 10 '14 at 06:31
-
@pskink: kindly will u give me some code of this setup method. i could not understand ur suggestion – Hamza Khalil Sep 10 '14 at 06:48
1 Answers
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