Android Handling Depp Links edit

Handling Deep Links


Deep links are URLs that take users directly to specific content in your app. You can set up deep links by adding intent filters and extracting data from incoming intents to drive users to the right screen in your app.


<data> Attribute | Details | —— | —— | —–| scheme | The scheme part of a URI (case-sensitive). Examples: http, https, ftp | host | The host part of a URI (case-sensitive). Examples:, | port | The port part of a URI. Examples: 80, 443 | path | The path part of a URI. Must begin with /. Examples: /, /about | pathPrefix | A prefix for the path part of a URI. Examples: /item, /article | pathPattern | A pattern to match for the path part of a URI. Examples: /item/.*, /article/[0-9]* | mimeType | A mime type to match. Examples: image/jpeg, audio/*


The <intent-filter>

This combination of <action> and <category> elements is what tells the Android system that a specific Activity should be launched when the user clicks on a link in another application.

    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <data ... />


Multiple <data> tags

The set of deep links that your <intent-filter> supports is the cross-product of all the <data> elements that you define in that intent-filter. The multiple domain, multiple path, and multiple scheme examples demonstrate this.


Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents
64 Menu
98 Handling Depp Links
112 Loader
119 Xposed
132 Colors
135 Fresco
140 AdMob
147 Button
156 Vk SDK
170 XMPP
176 OpenCV
200 FileIO
203 Moshi
217 Paint
231 AIDL
241 JCodec
243 Okio
255 Looper
  ↑ ↓ to navigate     ↵ to select     Esc to close