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've reached locked video content where the transcript will be shown as obfuscated text.

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()