Varun Ramani Varun Ramani - 4 months ago 47
Android Question

Android Deep Linking with multiple query parameters

I'm trying to deep link my app and have implemented the following in my AndroidManifest.xml to open the proper activity.

<!-- ATTENTION: This intent was auto-generated. Follow instructions at to publish your Android app deep links. -->
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- ATTENTION: This data URL was auto-generated. We recommend that you use the HTTP scheme.
TODO: Change the host or pathPrefix as necessary. -->
android:scheme="myCustomScheme" />

And I'm testing the activity from adb using

adb shell am start -W -a android.intent.action.VIEW -d "myCustomScheme://myHost?key=category_parent_id&value=92&title=test"

The Activity is opening but the URI which is passed to the activity in the intent is only


Its skipping everything after '&'

I did look up here on SO but didn't find anything with multiple query parameters.

Any help would be appreciated. :)


please add \ before & sign when testing with adb

copy this

adb shell am start -W -a android.intent.action.VIEW -d "myCustomScheme://myHost?key=category_parent_id\&value=92\&title=test"