I've got two navigation graphs nav_graph_red
and nav_graph_blue
and two Activities ActivityRed
and ActivityBlue
.
In each navigation graph I have a flow with 3 Fragments. redFragmentOne
,redFragmentTwo
,redFragmentThree
and blueFragmentOne
,blueFragmentTwo
,blueFragmentThree
Now I want to navigate from ActivityRed
- redFragmentOne
to the destination blueFragmentTwo
.
Is there a way to accomplish this?
I tried it this way:
Navigation.findNavController(ActivityBlue.newInstance(),R.id.host_navigation).navigate(R.id.blueFragmentTwo)
Any suggestions?