Handling Deep Links

suggest change

Introduction

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.

Parameters

<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: google.com, example.org | 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/*

Remarks

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.

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

    <data ... />

</intent-filter>

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.

Resources

Feedback about page:

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


Handling Depp Links:
* Handling Deep Links

Table Of Contents
2 Gradle
5 Intent
17 Service
19 WebView
31 SQLite
35 Glide
37 Dialog
38 ACRA
44 Handler
53 Toast
63 Menu
65 Picasso
70 Volley
71 Widgets
78 Realm
90 Spinner
95 OkHttp
97 Handling Depp Links
108 TextView
109 ListView
111 Loader
118 Xposed
119 Security
121 ImageView
123 Doze Mode
130 Drawables
131 Colors
134 Fresco
139 AdMob
145 Keyboard
146 Button
150 EditText
155 Vk SDK
163 ExoPlayer
169 XMPP
175 OpenCV
177 Threads
184 ORMLite
186 TabLayout
190 LruCache
192 Zip files
194 Fastlane
199 FileIO
202 Moshi
210 VideoView
216 Paint
218 ProGuard
226 CleverTap
228 ADB shell
229 Ping ICMP
230 AIDL
234 Context
240 JCodec
242 Okio
249 FuseView
254 Looper
261 Fastjson
263 Jackson
267 Smartcard