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

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