Category "android-jetpack-navigation"

Deeplinking with Navigation component with Individual Stack

I have two urls which falls under the same deep link like below : xxx.yyy.zzz/pages xxx.yyy.zzz/how-deeplinks-work-exactly Now the first one is a list of pages

NullPointerException on FragmentHostCallback.getContext()

I'm facing this random crash while navigating to a Fragment via deep-link which is declared in the navigation graph file. I'm using navigation component library

How to tell the composeTestRule to wait for the navhost transition?

I'm trying to write an integration test for an Android application entirely written in Compose that has a single Activity and uses the Compose Navigation to cha

Sharing viewModel within Jetpack Compose Navigation

Can anyone suggest how to share a ViewModel within different sections of a Jetpack Compose Navigation? According to the documentation, viewModels should normall

How to start the same action multiple times from the same startingDestination using navigation graph?

I started recently using the navigation graph and i have a problem that i havent solved yet. I want to open the same fragment multiple times that they are stack

Recyclerview getting refreshed after come back from another screen - Android navigation

I am having a product listing page. The recyclerview is filled with data from the Firebase firestore. When I click on any product, it will go to the details pag

OnKeyEvent without focus in Jetpack Compose

I am creating an app that makes use of a physical button on the device. This button will have a different functionality depending on the screen that is active.

Compose-Navigation: Remove previous composable from stack before navigating

I'm using compose-navigation(alpha09) to handle the navigation between composables I want to remove the Splash screen when moving to the next destination (I don

ViewPager2 crash

I am using Advance Navigation Component with BottomNavigationView. In one tab I have ViewPager2. When I clicked on the tab for the first time, it worked fine. A

Android: no start destination defined via app:startDestination for x.x.x:id/nav_graph

In the nav_graph even though I have used, I get warning project level gradle: // Top-level build file where you can add configuration options common to all

IllegalStateException on DataBindingUtil.setContentView: Restoring the Navigation back stack failed, current destination null

For some users, my app seems to crash regularly at or near app start. It's been an issue I've been trying to figure out for a while but I haven't had much succe

Use Dialog as navigation destination with jetpack compose

A dialog can have a rather complex ui, acting more like a floating screen rather than a typical AlertDialog. Therefore it can be desired to let the dialog have

Jetpack Compose navigate for result

I'm using the Jetpack Navigation library with the Compose version. I'm setting up navigation like it's shown here I want to be able to navigate from screen A to

Compose - NavHost recomposition multiple times

During navigation from Navhost, I found out that the composable screens are getting recomposition multiple times. Because of it, my ViewModel is calling API dat

Jetpack Compose + Hilt: java.lang.RuntimeException: Cannot create an instance of class ViewModel

I started trying jetpack Compose recently and used hilt & hilt-navigation-compose for my app. It works fine with the first ViewModel. However, when I try th

Navigation Component: IllegalStateException Fragment not associated with a fragment manager

I'm using the Navigation Component version 2.1.0-rc01 and I navigate back and forth between 3 screens using Navigation.findNavController(it).navigate(R.id.act