I am trying to test android deep link urls through adb to launch my app

前端 未结 11 692
孤街浪徒
孤街浪徒 2021-01-30 10:07

When I type the command in adb:

./adb shell am start -W -a android.intent.action.VIEW -d \"example:gizmos\" com.myapp

I get this error:

11条回答
  •  终归单人心
    2021-01-30 10:43

    You don't need to specify full path to your activity, but if you want to test whether you react properly to URI in your app just specify app package:

    adb shell am start -a android.intent.action.VIEW -d "example://gizmos" com.myapp
    

    Also there is bug in command you provided - there should be example://gizmos not example:gizmos

提交回复
热议问题