deep linking - Error starting an activity -


i have intent filter defined in manifest file 1 of activities. when trying start activity adb shell, using following command :

$ adb shell start

    -w -a android.intent.action.view      -d "example://gizmos" com.example.android 

i getting following error :

starting: intent { act=android.intent.action.view dat=http://www.example.com/gizmos pkg=com.example.android }

error: activity not started, unable resolve intent { act=android.intent.action.view dat=http://www.example.com/gizmos flg=0x10000000 pkg=com.example.android }

please help.

here manifest entry :

  <activity          android:name="com.example.android.activity.exampleactivity"          android:configchanges="orientation|keyboardhidden|screensize"          android:screenorientation="portrait" >          <intent-filter android:label="search" >              <action android:name="android.intent.action.view" />                <category android:name="android.intent.category.default" />              <category android:name="android.intent.category.browsable" />              <!-- accepts uris begin "example://gizmos” -->              <data                  android:host="gizmos"                  android:scheme="example" />              <!-- accepts uris begin "http://www.example.com/gizmos” -->              <data                  android:host="www.example.com"                  android:pathprefix="gizmos"                  android:scheme="http" />          </intent-filter>      </activity> 

edit androidmanifest.xml follow:

<intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" />  <!-- accepts uris begin "example://gizmos” --> <data    android:host="gizmos"    android:scheme="example" /> </intent-filter>  <intent-filter> <action android:name="android.intent.action.view" />  <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" />  <!-- accepts uris begin "http://www.example.com/gizmos” --> <data      android:host="www.example.com"     android:pathprefix="gizmos"     android:scheme="http" /> </intent-filter> 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -