I am new Android and currently working on a project involving navigation between the activities within the tabbed activity(HomeActivity). I am stuck at a point where I have to navigate to a specific tab fragment, say Tab 2, from a button click event from Activity2. I have been stuck at this issue for a while now any help would be appreciated.
I have a recyclerview on tab2 which should be loaded when the tab2 opens after the click event is performed from activity2.
I have researched about it for a while but was not able to come to a solution after trying various of them. I also found a similar question here. My code fragment is also similar to the one in the link but that is an unanswered question.
I have also looked here and here.
I would appreciate if I can get some help in this matter.