0
0
Android Kotlinmobile~5 mins

Deep links in Android Kotlin - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a deep link in Android development?
A deep link is a URL that opens a specific page or content inside an app instead of just launching the app's home screen.
Click to reveal answer
intermediate
How do you declare a deep link in AndroidManifest.xml?
You add an <intent-filter> inside an <activity> with <action android:name="android.intent.action.VIEW" />, <category android:name="android.intent.category.DEFAULT" />, <category android:name="android.intent.category.BROWSABLE" />, and <data> specifying the URI scheme and host.
Click to reveal answer
intermediate
What is the difference between an explicit and implicit deep link?
Explicit deep links open a specific screen in your app using a URI you define. Implicit deep links use standard web URLs that can open your app or a website if the app is not installed.
Click to reveal answer
beginner
Why is the android.intent.category.BROWSABLE category important for deep links?
It allows your app to be opened from a web browser when a user clicks a link, enabling the deep link to work from outside the app.
Click to reveal answer
beginner
How can you test a deep link on an Android device?
You can use the command adb shell am start -W -a android.intent.action.VIEW -d "yourapp://path" your.package.name or click a link with the matching URI on the device.
Click to reveal answer
Which intent action is used to declare a deep link in Android?
Aandroid.intent.action.VIEW
Bandroid.intent.action.MAIN
Candroid.intent.action.SEND
Dandroid.intent.action.CALL
What does the android.intent.category.BROWSABLE category allow?
ALaunching the app from the home screen
BOpening the app from a web browser link
CSending data between apps
DRunning background services
Which file do you modify to add deep link support in an Android app?
AMainActivity.kt
Bbuild.gradle
Cstrings.xml
DAndroidManifest.xml
What is an implicit deep link?
AA link that requires user login
BA link that only opens the app's home screen
CA link that opens a web URL or app if installed
DA link that opens a system settings page
How can you test a deep link using adb?
Aadb shell am start -W -a android.intent.action.VIEW -d "yourapp://path" your.package.name
Badb install yourapp.apk
Cadb logcat
Dadb shell pm clear your.package.name
Explain how to add a deep link to an Android app and why each part of the intent filter is important.
Think about how the app knows to open from a link and from where the link can come.
You got /5 concepts.
    Describe the difference between explicit and implicit deep links and give an example of when to use each.
    Consider if the link is custom or a normal web address.
    You got /4 concepts.