Vivek Modi
11/21/2025, 9:17 PMWinson Chiu
11/21/2025, 9:23 PMAndroidFragment and ActivityLauncher directly from your composables. There's no custom entryProvider for A/F like there is with Nav2.Ian Lake
11/21/2025, 9:31 PMAndroidFragment for all of their content.
Activities were 'exit points' in Nav2 anyways (they were never adding the NavController's back stack or anything), so they just do the same startActivity you can do yourselfIan Lake
11/21/2025, 9:33 PMLocalUriHandler that is available in common if you want Android specifics and reference your other activities by a Uri that they handle)Vivek Modi
11/21/2025, 10:22 PMIan Lake
11/21/2025, 10:27 PMNavHostFragment), then you're using Fragments for your transition system, which is a bigger change if you were to swap to a Compose based navigation system, but you'll be much better set up for 'stopping the bleeding' and building all your new screens in Compose from the startVivek Modi
11/21/2025, 11:26 PMIan Lake
11/21/2025, 11:39 PMNavHost) or Nav2 with Fragments setup (NavHostFragment)?Vivek Modi
11/21/2025, 11:43 PM(NavHost) setup. We do not use NavHostFragment.
However, we still have legacy Fragments in the codebase that we need to navigate to and display within our Compose graph when we adopt compose navigation.Ian Lake
11/21/2025, 11:52 PMnavigation-compose-fragment dependency and it's fragment destinations you can put in your Navigation graph you pass to NavHost?Vivek Modi
11/22/2025, 8:51 AMNavHostFragment or any fragment-based navigation setup. We also don’t have NavHost yet, we’re still in the early stages of moving XML/fragment screens to Compose, so our legacy fragments are launched in the traditional way (regular fragment transactions).
At this point, we’re just trying to understand what the recommended interop path is while we gradually migrate those screens to Compose. Should we continue using the current fragment transaction approach during this transition, or is the navigation-compose-fragment dependency the right path even before adopting a full NavHost setup?