Search code examples
androidkotlinandroid-jetpack-composeandroid-jetpack-navigation

How can I test deep link through command line for multiword destinations?


Here is a command line for single line destination according to this codelab

adb shell am start -d "rally://single_account/Checking" -a android.intent.action.VIEW

I just want to test this command line with a multiword destination like this:

adb shell am start -d "rally://single_account/"Home Savings" -a android.intent.action.VIEW

Which gives me an error Activity not started, unable to resolve Intent. How can I resolve this kind of destination?


Solution

  • After some tries I've found this works:

     adb shell am start -d "rally://single_account/'Home Savings'" -a android.intent.action.VIEW