30 questions
0
votes
0
answers
15
views
Last fragment is shown as a flicker when launched from a different application
The target activity uses singleTop as launchMode. When it is launched from another application with the following code, it shows Fragment A, then user switches to fragment B. Then user switches to ...
0
votes
0
answers
22
views
Kotlin navigation controller [duplicate]
I've successfully implemented jetpack component and that is navigation controller.
I'm encoutering an issue where fragments are recreated when navigating back to previoud fragment.
Does anyone know ...
3
votes
0
answers
51
views
How to Properly Handle Navigation and Back Stack Logic in Jetpack Compose Navigation?
I need an implementation that follows this navigation pattern. For example, there are screens a, b, c, and d. The navigation sequence is a > b > d > c > b > d. When we are on screen d ...
0
votes
0
answers
36
views
Android application fragments showing content only when theme (light/mode) is switched
I am working on an android application and I spent a long time implementing a NavController with my BottomNavigationView. It works properly, I can transition between the different buttons but the ...
0
votes
1
answer
487
views
How to Prevent Flickering Effect when Switching Screens based on DataStore Value in Jetpack Compose?
I'm utilizing the DataStore value isLanguageSelected to determine whether to display the HomeScreen() composable or the LanguageScreen(). While the functionality works as intended, I'm encountering an ...
0
votes
1
answer
75
views
The app is not running on Android after using NavController
On running the code, there are no errors. After clicking on run button it is showing that app is launching on device connected but few seconds later, once it is installed on device connected, I can ...
0
votes
1
answer
292
views
How to update the argument of a destination when going back to it?
I'm currently trying to implement some sort of account profile where the current user can do some modification to their profile. I already added the profile syncing on the server side, but I'm ...
0
votes
1
answer
55
views
DialogFragment exit animation showing empty white screen
I have a DialogFragment with this code in order to animate when it exits:
override fun dismiss() {
dismissListener?.invoke()
exitAnimation?.let {
val animation = ...
3
votes
4
answers
5k
views
Unresolved reference: rememberNavController in jetpack compose
I am trying to implement navigation in jetpack compose but I have added the following dependency as described in google docs
implementation "androidx.navigation:navigation-compose:2.7.3"
but ...
2
votes
0
answers
483
views
How to use NavController with a deeplink Uri and a Bundle of arguments
In short, I'd like to do this:
void nav(NavController navController, Uri deepLink, Bundle args) {
navController.navigate(deepLink, args);
}
However, androidx.navigation.NavController only has ...
0
votes
0
answers
678
views
Android Jetpack Compose Navigation Screen Flickers
I am using Navigation in Compose. When user moves from one screen to another the screen flickers. The flickering appears to be due to the screen being rendered multiple times. I am not able to ...
0
votes
1
answer
335
views
childFragmentManager.findFragmentById(R.id.nav_host_fragment_challenges) returns null
Thanks to a bottomNavigationView, I use NavController to navigate between 4 different fragments.
In one of these fragments (ChallengesFragment) I have an inner_fragment (nav_host_fragment_challenges) ...
0
votes
1
answer
107
views
Handling game state running inside a webview fragment
I'm using single activity architecture and have 3 fragments (Fragment A, Fragment B and Fragment C).
Click on button in Fragment A takes to Fragment B and click on button in Fragment B takes to ...
1
vote
0
answers
125
views
How to continue with last screen when i exit or app is crashed on Android with Compose
I'm trying to create something for the Android app using Compose and navigation, to make it possible to continue with the last screen I was showing to the user if an app crashed or been killed by the ...
1
vote
2
answers
274
views
How to "Split your [settings] hierarchy into multiple screens" using NavController in Android?
So I'm creating my first Android App and I'm already using Jetpack Navigation. I also am implementing my own custom layouts with their own custom toolbars. However, I wanted to take advantage of the ...