<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Summers Pittman on Medium]]></title>
        <description><![CDATA[Stories by Summers Pittman on Medium]]></description>
        <link>https://medium.com/@mrsummers?source=rss-129892725592------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8wWgPmCgxariqpFo</url>
            <title>Stories by Summers Pittman on Medium</title>
            <link>https://medium.com/@mrsummers?source=rss-129892725592------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:07:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mrsummers/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Share Android App Links with the Sharesheet]]></title>
            <link>https://medium.com/androiddevelopers/share-android-app-links-with-the-sharesheet-d04605df3f3a?source=rss-129892725592------2</link>
            <guid isPermaLink="false">https://medium.com/p/d04605df3f3a</guid>
            <category><![CDATA[deep-links-android]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[codelab]]></category>
            <category><![CDATA[android-sharesheet]]></category>
            <dc:creator><![CDATA[Summers Pittman]]></dc:creator>
            <pubDate>Fri, 10 Feb 2023 18:01:22 GMT</pubDate>
            <atom:updated>2023-02-10T18:01:22.893Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Use the Sharesheet for Rich Link Sharing</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9UOakYHc0AQQMT9lcp_zCQ.png" /></figure><p>Android App Links allow your application to open web links instead of a web browser. Handling these deep links has been covered in our <a href="https://medium.com/androiddevelopers/the-deep-links-crash-course-part-1-introduction-to-deep-links-2189e509e269">Deep Links Crash Course</a>. In addition to being able to open deep links, your app should be able to create and share deep links to specific content as well.</p><p>Sharing links to content inside of your application is an important action in Android. Link sharing enables your app and its users to engage in collaboration, communication, social networking, etc. All of these activities increase engagement with your application, and give your application’s deep linking support a proper workout. A great tool for sharing linked content is the Android <a href="https://developer.android.com/training/sharing/send">Sharesheet</a>. This article will show why you should use the Sharesheet and demonstrate how to use it with linked content. Let’s get started!</p><p>First, what is the Sharesheet? Android provides an in-app interface for selecting users or applications to send content directly to. This interface is called the Sharesheet, which displays when you call <a href="https://developer.android.com/reference/android/content/Intent#createChooser(android.content.Intent,%20java.lang.CharSequence)">Intent.createChooser</a> using an intent with the <a href="https://developer.android.com/reference/android/content/Intent#ACTION_SEND">ACTION_SEND</a> action. The Sharesheet provides an effective way to share data with other apps without using explicit intents.</p><p>The following example will invoke the Sharesheet, presenting users with relevant targets to share to. Your users will each have a sheet tailored to their installed applications and contacts.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c15067da208f077387289c137ed2beca/href">https://medium.com/media/c15067da208f077387289c137ed2beca/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*00N0FuxueHMBvPsn6XEhTQ.png" /></figure><p>This is a basic example, and we’re much more likely to be sharing something more interesting than plain text. If your application supports Android App Links, it can share links directly to content inside of the application. Let’s look at a sample link: “<a href="https://secondsun.github.io/specials/spaghetti">https://example.com/specials/spaghetti</a>&quot;. This link is clear to users of the app that it is a spaghetti special, and we could probably get by without spicing up the share sheet.</p><p>However, sometimes a link’s destination might not be clear. A link to a Google Doc, as an example, often looks something like this: <a href="https://docs.google.com/document/d/1TejHHDrzvSoBZCEoOznEeImQPMgdeyhRbjB2szoPLDQ">https://docs.google.com/document/d/1TejHHDrz…NotARealLink</a>. From the link alone, a user might not know what information they are actually sharing. In this case, we should consider adding a richer preview.</p><p>Coincidentally, this is also the guidance from the Android documentation <a href="https://developer.android.com/training/sharing/send">https://developer.android.com/training/sharing/send</a>.</p><pre>Consider sharing a complicated URL like: <br>https://www.google.com/search?ei=2rRVXcLkJajM0PEPoLy7oA4. <br>A richer preview can reassure your users what is being shared.</pre><p>For our use, a richer preview includes extra title text and an image thumbnail. We can set our title text by adding a description to Intent.EXTRA_TITLE. To embed images in the Sharesheet, we set the Intent’s clipData parameter to a content URI that is served by a file-provider. The rest of this article will walk you through providing richer share content previews in the Sharesheet by embedding images from an arbitrary URL.</p><p>First: Let’s create a file-provider in our AndroidManifest.xml file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa828689f0442a46e7787f708bf1af9d/href">https://medium.com/media/aa828689f0442a46e7787f708bf1af9d/href</a></iframe><p>Now we need to add the filepaths.xml file to our XML resources directory. For our example we will provide images from the root or the cache directory. This example filepaths.xml file will link our cache root to the content uri for “/images”.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1908379a7002b29954f1e6098314f8f9/href">https://medium.com/media/1908379a7002b29954f1e6098314f8f9/href</a></iframe><p>While not strictly necessary, according to the <a href="https://developer.android.com/reference/androidx/core/content/FileProvider">FileProvider API</a> docs we should create a stub implementation for our application. Quote, “It is possible to use FileProvider directly instead of extending it. However, this is not reliable and will cause crashes on some devices.”</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5aa168bad0a88484313596e7df95d0cf/href">https://medium.com/media/5aa168bad0a88484313596e7df95d0cf/href</a></iframe><p>So what has this actually done? We have declared a file provider that can make a content URI for images in the root of our cache directory. We can call FileProvider.getUriForFile to create a URI that Sharesheet can use to display the image.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a60ed4ec8eaea312d718aca8911e6c52/href">https://medium.com/media/a60ed4ec8eaea312d718aca8911e6c52/href</a></iframe><p>With a link, title, and content Uri to our image, we are now ready to make our intent.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5836e1184eec07135e844953d2bc7e71/href">https://medium.com/media/5836e1184eec07135e844953d2bc7e71/href</a></iframe><p>And voila! The Sharesheet with rich text previews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*PtOwIb31X7XB1mse41alqQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d04605df3f3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/androiddevelopers/share-android-app-links-with-the-sharesheet-d04605df3f3a">Share Android App Links with the Sharesheet</a> was originally published in <a href="https://medium.com/androiddevelopers">Android Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Links Crash Course : Part 3 Troubleshooting Your Deep Links]]></title>
            <link>https://medium.com/androiddevelopers/deep-links-crash-course-part-3-troubleshooting-your-deep-links-61329fecb93?source=rss-129892725592------2</link>
            <guid isPermaLink="false">https://medium.com/p/61329fecb93</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[deep-links-android]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[android-app-links]]></category>
            <dc:creator><![CDATA[Summers Pittman]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 18:45:54 GMT</pubDate>
            <atom:updated>2023-04-03T18:54:53.072Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deep Links Crash Course : Part 3 Troubleshooting Your Deep Links</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IsRqP0Fe9I6YLxrJybIG6Q.png" /></figure><h3>Introduction</h3><p>What do you do when your Android App Links don’t work the way you want them to? There are many tools available from Google to help you, such as the <a href="https://play.google.com/console/about/deeplinks/">Play Console Deep Links</a> page which gives you a single place to view and resolve many common issues with App Links. After being notified of an issue in the Play Console, you can follow these steps to debug your Android App Links. This blog post will walk you through debugging deep links in an application using adb, inspect your Digital Asset Link files using curl, and demonstrate how to handle user experience on the device.</p><p>Let’s fire up the terminal. We’re running adb commands!</p><h3>Symptom 1: The Links Never Work</h3><p>If users are clicking on links and they aren’t opening in your application, then there might be a problem with your intent-filters. You can test your intent-filters using the command <a href="https://developer.android.com/training/app-links/deep-linking#testing-filters">adb shell am start</a> with a <a href="https://developer.android.com/reference/android/content/Intent#ACTION_VIEW">VIEW</a> action, a deep linked URL, and the package id. This checks that the application can handle a deep link which is explicitly sent to it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13a6341009a21a1728dadf00e1c9169d/href">https://medium.com/media/13a6341009a21a1728dadf00e1c9169d/href</a></iframe><p>This command should open the application if its intent-filters are configured correctly. However, if you see an error like the one below, you should inspect the AndroidManifest.xml file and double check its configuration.</p><pre>Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=https://droidfood.example.com/... flg=0x10000000 pkg=com.example.droidfood }</pre><p>In an Android app’s AndroidManifest.xml file, Android App Links are declared as intent-filter elements. When they are correctly configured, the Android app will be the default handler for links that match the intent-filter parameters.</p><p>Correctly configuring these parameters involves:</p><ul><li>Setting the <a href="https://developer.android.com/reference/android/R.styleable#AndroidManifestIntentFilter_autoVerify">autoVerify</a> attribute of the intent-filter element to true</li><li>Setting an action element with the name attribute to <a href="https://developer.android.com/reference/android/content/Intent#ACTION_VIEW">VIEW</a></li><li>Setting a category element with the name attribute to <a href="https://developer.android.com/reference/android/content/Intent#CATEGORY_BROWSABLE">BROWSABLE</a></li><li>Setting a second category element with the name attribute to <a href="https://developer.android.com/reference/android/content/Intent#CATEGORY_DEFAULT">DEFAULT</a></li><li>Including at least one data element with a scheme attribute of “HTTP” or “HTTPS”</li><li>Including a data element with a “host” attribute set to the domain where you host your deep links</li><li>Having no data element with a custom scheme</li></ul><p>For example, the following is a correctly-configured intent-filter to handle deep links that match <a href="https://food.example.com/">https://droidfood.example.com</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/abee5ed1f45838b49b28b6bcc86e83e4/href">https://medium.com/media/abee5ed1f45838b49b28b6bcc86e83e4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*bYN4dnEE0Nu4cTmy-Rak0Q.png" /></figure><p>Once the application’s intent-filters are correctly configured, rerun the adb command and ensure that the application opens correctly.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9fcb61c13ed04700b374d7a0d3b0772d/href">https://medium.com/media/9fcb61c13ed04700b374d7a0d3b0772d/href</a></iframe><p>Once it does, try the command again without the explicit package name ‘com.example.droidfood’. This tests that Android can open the application with the link correctly.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7a40e6dfb7b4bb75da7a66e8c6b2e07/href">https://medium.com/media/d7a40e6dfb7b4bb75da7a66e8c6b2e07/href</a></iframe><p>If the application opens, then you’ve fixed the issue! If, like in the image below, the system web browser opens the link you have more debugging to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*IwbzUVplp8SxvGMGVbJliQ.png" /></figure><h3>Symptom 2: Links Open in the Browser (But Work With ADB)</h3><p>The system web browser has handled the link instead. The next two commands, introduced in Android 12, should help diagnose what happened:.</p><ul><li>adb shell pm verify-app-links -- re-verify forces the Android operating system to <a href="https://developer.android.com/training/app-links/verify-site-associations">verify the site association</a> between the application and the web host. This is an asynchronous command and may take a few minutes for its work to be completed.</li><li>adb shell pm get-app-links lists Android App Links declared in the manifest and their verification status.</li></ul><p>In Android, HTTP links must be verified for apps to be the default handler for a deep link. Both of these commands take the package name of the application as a parameter. Running these commands for the app gives us this result:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e8dce338d65fdef76814fbdcf9bbca7/href">https://medium.com/media/9e8dce338d65fdef76814fbdcf9bbca7/href</a></iframe><p>The links are Android App Links; however, they are not “verified” Android App Links and the application won’t be the default handler for links for the droidfood.example.com host. The Android developer documentation provides a full list of the <a href="https://developer.android.com/training/app-links/verify-site-associations#review-results">verification results</a> and how to interpret them.</p><p>Android uses the <a href="https://developers.google.com/digital-asset-links">Digital Asset Links API</a> to establish trust between a web domain and the application. In practice, this means that each host in an app’s set of intent-filter elements in AndroidManifest.xml serves an assetlinks.json file in the /.well-known/ path.</p><p>The assetlinks.json file establishes trust by providing the following information:</p><ul><li>The package name of the Android application</li><li>An array of signing key certificate fingerprints that identify the application</li><li>The application signing key certificate fingerprint must match one in this array</li></ul><p>The curl command can easily fetch files from a host and can be used to check the content of the file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2dee13f36942e063851fc17fe6b66fed/href">https://medium.com/media/2dee13f36942e063851fc17fe6b66fed/href</a></iframe><p>Additionally, the hosting for the file must meet several criteria:</p><ul><li>assetlinks.json must be served publicly and cannot be behind authentication or a VPN</li><li>The host must serve the file using a secure HTTPS connection</li><li>Redirects may not be used to access assetlinks.json</li><li>The Content-Type HTTP header of the file must be application/json</li></ul><p>curl can also be used to check that a file is correctly hosted. The -i option should be used to print the HTTP headers which can be checked for correctness</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e88ce147ce9d9808305601b1578236b/href">https://medium.com/media/1e88ce147ce9d9808305601b1578236b/href</a></iframe><p>The assetlinks.json file seems to be correctly hosted, and the content looks correct at a glance. There are several checks that can narrow down what problems might be causing links to fail. If the file isn’t correctly hosted, check “Section 3: Diagnosing Other Problems” for more information.</p><h3>Confirming Our Signing Keys</h3><p>The assetlinks.json file for <a href="https://food.example.com/">https://</a><a href="https://example.com/.well-known/assetlinks.json">droid</a><a href="https://food.example.com/">food.example.com</a> references the certificate fingerprint “4C:D7:E4:04:B8:54:04:A0:5F:50:35:38:CF:B6:89:3D:35:CE:54:C7:01:8E:ED:78:7A:50:9B:4A:2E:A8:BE:B4”.</p><p>In the development lifecycle of an Android app, many keys are used to sign the application. One common source of errors is that the key used when signing an APK in the Play Store doesn’t match the key that’s referenced in the assetlinks.json file.</p><blockquote>“If you’re using <a href="https://support.google.com/googleplay/android-developer/answer/9842756">Play App Signing</a> for your app, then the certificate fingerprint produced by running keytool locally will usually not match the one on users’ devices. You can verify whether you’re using Play App Signing for your app in your <a href="https://play.google.com/console/">Play Console</a> developer account under <strong>Release &gt; Setup &gt; App Integrity</strong>; if you do, then you’ll also find the correct Digital Asset Links JSON snippet for your app on the same page.”</blockquote><p>The command adb shell pm get-app-links displays the certificate fingerprint used by Android to verify links, and this can be compared to the certificate used in assetlinks.json:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a31d07d364aa683b3f69b8b13f51ee9e/href">https://medium.com/media/a31d07d364aa683b3f69b8b13f51ee9e/href</a></iframe><p>In this example, the fingerprints do not match. To fix the error, apply the correct fingerprint needs to the assetlinks.json file. To test the fix, use adb commands to reverify the links:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a01bcd22941dbd3416646a779bb5e7a6/href">https://medium.com/media/a01bcd22941dbd3416646a779bb5e7a6/href</a></iframe><p>Updating the certificate fingerprint in the assetlinks.json file has fixed the issue! Now the application should open instead of the browser when your app receives a view intent. This can be tested with adb using the same command we used in Section 1:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92ef48e0db1bf9212cdaa79f474bdb0b/href">https://medium.com/media/92ef48e0db1bf9212cdaa79f474bdb0b/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*IwbzUVplp8SxvGMGVbJliQ.png" /></figure><p>For more information on key generation please see “<a href="https://developer.android.com/studio/publish/app-signing">Sign your app</a>” on developer.android.com.</p><h3>Symptom 3: Your Links Used to Work But Don’t Now</h3><p>There are many different providers, services, and server applications that may be hosting assetlinks.json. Additionally there may be content delivery networks or other similar services that may be interfering with link verification. The next few sections show how to detect these failures, but don’t investigate how to solve them. That task is better suited for a host’s operations team than an Android app developer.</p><p>Each example uses the curl tool, and highlights what output to be aware of in the case of hosting errors.</p><h3>Incorrectly Hosted File (Using a Redirect)</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9fa0baffa6824d2eb2c3d8853a8ebeaf/href">https://medium.com/media/9fa0baffa6824d2eb2c3d8853a8ebeaf/href</a></iframe><p>A 301 redirect like the one seen above will cause verification to fail. This is often the case when an assetlinks.json file is hosted on a server with one domain, but the app’s intent-filter handles a different domain. For example, the Android App Links may handle “example.com” but the content redirects to “<a href="https://example.com/.well-known/assetlinks.json">droidfood</a><a href="http://www.example.com/">.example.com</a>”.</p><p>There are several other common redirect headers which will also block verification. The <a href="https://datatracker.ietf.org/doc/rfc9110/">IETF HTTP RFC</a> specifies other 3xx redirects that may be encountered. Remember, the assetlinks.json file must return a HTTP Status of 200 to be successfully validated.</p><h3>Missing HTTPS</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c517bbd0bec5a0038a23454a2ec1a827/href">https://medium.com/media/c517bbd0bec5a0038a23454a2ec1a827/href</a></iframe><p>Port 443 is the standard port for encrypted HTTPS communication. The above output demonstrates a failure to load the assetlinks.json file because the server does not use HTTPS. Android will not verify links if the unencrypted HTTP protocol is used.</p><h3>Incorrect Content-Type Header</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9cfc26e8b8440eb70a2cb966f184f89b/href">https://medium.com/media/9cfc26e8b8440eb70a2cb966f184f89b/href</a></iframe><p>In the above example, the file sets the content-type header to text/plain (plaintext) and not JSON. Android App Links require the assetlinks.json file to be served with a HTTP Content-Type header value of application/json.</p><h3>Private assetlinks.json File</h3><p>The assetlinks.json file must be public. Development, testing, and debugging often happens while connected to an office VPN. This can create a situation where files are accessible during testing and debugging to app maintainers, but are not available to the public. To verify that your app can load the assetlinks.json file, use a public network without a VPN connection. Examples of these networks include: a phone’s cellular network, a home connection, and the Wi-Fi network at a local coffee shop.</p><h3>Missing or Misplaced assetlinks.json File</h3><p>Every host referenced by an intent-filter with the autoVerify attribute set to true in an AndroidManifest.xml file must also have an assetlinks.json file that establishes an association between that domain and the application. Additionally, if wildcards are used in the intent filter element, then the assetlinks.json file must be available in the host’s top-level /.well-known/ directory. For example, *.example.com will fail validation if example.com does not host the assetlinks.json file.</p><h3>Other Server Errors</h3><p>We’ve presented common problems that developers have reported., Check your server for other types of unexpected behavior that could impact verification of assetlinks.json</p><h3>Symptom 4: The Disambiguation Dialog Appears</h3><p>The disambiguation dialog appears when the Android system cannot determine which app Activity should handle an Intent. Even after confirming that all links have correct intent filters, all hosts have assetlinks.json files, and the files are correctly hosted, the disambiguation dialog might appear. This section describes common scenarios where the Android system cannot determine the correct Activity. You can use this information to reduce the number of times that users see the disambiguation dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*lq3YgLPXswVZGhr5nLcLiQ.png" /></figure><h3>Intent Collisions</h3><p>The following example defines two activities: DessertActivity and FoodActivity. Both handle the deep link “https://droidfood.example.com/food/dessert” because this link matches both of their pathPrefix attributes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9a7ce7c2fe40e57e82e84d7ba78698c/href">https://medium.com/media/c9a7ce7c2fe40e57e82e84d7ba78698c/href</a></iframe><p>When multiple activities in an app define intent-filters for the same link, the disambiguation dialog can appear. Intent-filters should not overlap among different activities, and if this is an intentional feature of the application, the “label” attribute on the “activity” element should be set to differentiate which activity will handle the link intent.</p><h3>Android 12 Changes</h3><p>Before Android 12, if <strong><em>any</em></strong> links in your app failed verification, or <strong><em>all intent-filters</em></strong> lacked “autoVerify=true” then those Android App Links would show the disambiguation dialog. In Android 12, however, these links will instead be handled by the default web browser (see Android 12 <a href="https://developer.android.com/about/versions/12/behavior-changes-all#web-intent-resolution">Web intent resolution</a> behavior changes). To avoid the disambiguation dialog on earlier versions of Android, make sure all of your Android App Links can be verified, and remove test intent-filters from your AndroidManifest.xml.</p><h3>Other Apps Handle the Same Links</h3><p>Sometimes a user will install a third party application that handles the same links as another application. If both applications are using matching custom schemes, the disambiguation dialog appears. To avoid this, use web links with autoVerify=”true” set and add the assetlinks.json file to each domain that hosts your Android App Links.</p><h3>The User Has Chosen a Different Default App</h3><p>The user can choose to have a link always opened by a specific app. Your app can detect this and show an educational UI that advises users to associate itself with these deep links.</p><p>The following example shows how to detect whether the application with a package id “com.example.droidfood” is the default handler for the link “https://droidfood.example.com/about”.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9718fda56b8fbf5a324fb854ab7ddb27/href">https://medium.com/media/9718fda56b8fbf5a324fb854ab7ddb27/href</a></iframe><p>This code uses the <a href="https://developer.android.com/reference/android/content/pm/PackageManager">PackageManager</a> to find the default handler for a link you expect to handle. The code then compares this package name to the package name of our application. If names match, then the user has chosen our app to handle the Android App Links for the “<a href="https://food.example.com/about">https://droidfood.example.com/about</a>” domain. Otherwise, the user changed their default handler.</p><h3>Continue Learning</h3><p>This post shows how to detect and handle common errors with deep links. In the future we will also explore the new Deep Links Play Console which gives developers live feedback on their deep link performance and common errors like the ones in this post. There are many UX design patterns and best practicadb shell pm verify-app-links — re-verifyes that we’ve documented in DAC to help you make your app the best it can be!</p><ul><li><strong>Part 1:</strong> <a href="https://medium.com/androiddevelopers/the-deep-links-crash-course-part-1-introduction-to-deep-links-2189e509e269">What can you do with deep links?</a></li><li><strong>Part 2:</strong> <a href="https://medium.com/androiddevelopers/the-deep-links-crash-course-part2-deep-links-from-zero-to-hero-37f94cc8fb88">Deep links from Zero to Hero</a></li><li><strong>Part 3:</strong> <em>Overcoming Challenges Creating Android App Links</em></li><li><strong>Part 4:</strong> <a href="https://www.youtube.com/watch?v=UvMIswgsJF8&amp;list=PLWz5rJ2EKKc-hZMZIfAUMBDR7kPC1m7HU">Deep links for your business</a></li><li><a href="https://developer.android.com/training/app-links/deep-linking">Create Deep Links to App Content | Android Developers</a></li><li><a href="https://play.google.com/console/about/deeplinks/">Google Play Console Deep Links Dashboard</a></li><li><a href="https://developer.android.com/studio/command-line/adb">Android Debug Bridge</a></li></ul><p>Happy Linking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61329fecb93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/androiddevelopers/deep-links-crash-course-part-3-troubleshooting-your-deep-links-61329fecb93">Deep Links Crash Course : Part 3 Troubleshooting Your Deep Links</a> was originally published in <a href="https://medium.com/androiddevelopers">Android Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>