Skip to content

Instantly share code, notes, and snippets.

@litefeel
Created November 26, 2015 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save litefeel/171201fed8a35b59ffbb to your computer and use it in GitHub Desktop.
Save litefeel/171201fed8a35b59ffbb to your computer and use it in GitHub Desktop.
Supporting incoming links to your app
<!-- ATTENTION: This intent was auto-generated. Follow instructions at
https://g.co/AppIndexing/AndroidStudio to publish your Android app deep links. -->
<!-- support multiple inter filter -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- http://litefeel.com/myapp/xxxx
visite this link in browse will switch to this application
We recommend that you use the HTTP scheme.
TODO: Change the host or pathPrefix as necessary. -->
<data
android:host="litefeel.com"
android:pathPrefix="/myapp"
android:scheme="http" />
</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" />
<!-- myappscheme://xxxx
visite this link in browse will switch to this application -->
<data android:scheme="myapppscheme" />
</intent-filter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment