Android Deep-Linking mit mehreren query-Parametern

Ich versuche, die Tiefe link-meine app und umgesetzt haben, die folgenden in meinem AndroidManifest.xml öffnen Sie die richtige Aktivität.

<activity
    android:name=".ui.activities.MyActivity"
    android:label="@string/title_activity"
    android:screenOrientation="portrait">
    <!-- ATTENTION: This intent was auto-generated. Follow instructions at
    https://g.co/AppIndexing/AndroidStudio to publish your Android app deep links. -->
    <intent-filter>
        <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. -->
        <data
            android:host="myHost"
            android:scheme="myCustomScheme" />
    </intent-filter>
</activity>

Und ich Teste die Aktivitäten von adb mit

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

Wird die Aktivität öffnen, aber die URI, die an die Aktivität übergeben wird, in der Absicht ist nur

myCustomScheme://myHost?key=category_parent_id

Seine skipping alles nach '&'

Ich habe mir hier oben auf SO aber habe nichts gefunden, mit mehreren query-Parametern.

InformationsquelleAutor Varun Ramani | 2016-02-26
Schreibe einen Kommentar