'How to open new activity without effecting bottom nevigation

I have three activities all connected to bottom navigation, but one(activity_calculator) has buttons that open new activitiesxml of activity_calculator, how can i open new activitiesthis is the initial plan without changing the bottom navigation and if pressed should have me back to activity_calculator this is now main_activity looks ands this is the MainActivity.java how bottom navagation is implemented



Solution 1:[1]

Make Bottom Navigation as a parent activity with framelayout in xml. then call each child activities in the frame layout using tabhost. Extend parent activity with TabActivity

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1