question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integration AppIntro into Androidx navigation component

See original GitHub issue

AppIntro Version: 6.0.0

Device/Android Version: Pixel 2

Issue details / Repro steps / Use case background:

For the new Androidx navigation framework the activity needs a navHost fragment. Is it possible to add that into AppIntro?

Or could the AppIntro class also inherited from a Fragment class?

The problem that I am facing is that I want to navigate to another Fragment (outside of the AppIntro acitivty) in my main nav graph with safe arguments but I can’t do it without having a second graph in AppIntro or disabling the second AppIntro activity.

Does any have an idea how to solve this issue?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
oliexdevcommented, Jun 2, 2020

@WolandPL thanks you gave me the hint how to implement a workaround. I implemented a slightly different version at https://github.com/oliexdev/openScale/commit/83e55e05bc9d93f4ba4df7a64b3a44b8b70710b1

@cortinico Should I try to create a PR for AppIntro that includes the required NavFragment?

0reactions
oliexdevcommented, Jun 3, 2020

@cortinico I created a PR please review it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with the Navigation component - Android Developers
Create a navigation graph. Navigation occurs between your app's destinations—that is, anywhere in your app to which users can navigate. These ...
Read more >
I m using Navigation component and I have logout menu option
I m using Navigation component and I have logout menu option in toolbar when clicking it it should navigate to login fragment clicking...
Read more >
Navigation Component in Android: Simplifying ... - Innominds
Integrate the Navigation component: For each activity, we need to create a navigation graph that contains one or more fragments managed by that ......
Read more >
Navigation Component- The Complete Guide - Medium
Android Jetpack is a set of components, tools, libraries and guidance to help developers to create a brilliant quality-oriented application.
Read more >
android - where to write the Navigation Component safeArgs ...
In your project level build.gradle file: ... Navigation implementation("androidx.navigation:navigation-fragment-ktx:$nav_version") ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found