Jetpack Navigation: Getting Started

Aug 10 2021 · Kotlin 1.4, Android 11, Android Studio 4.2.1

Part 3: Add Animations & Deep Links

10. Implement an Explicit Deep Link

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 09. Global Actions Next episode: 11. Associate a Web Link with a Destination

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Android Apps don’t have just single entry point from Launcher Icon. Other entry points are Notifications, App widgets , Web URLs etc.

/*    val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com"))
    val pendingIntent = PendingIntent.getActivity(context, 0, intent, 0)*/
   val args = Bundle()
        args.putString("param1", "Test User")
        args.putString("param2", "Handled Link From Widget")
        val pendingIntent = NavDeepLinkBuilder(context)
                .setGraph(R.navigation.nav_graph)
                .setDestination(R.id.welcomeFragment)
                .setArguments(args)
                .createPendingIntent()