title: My Android app always opens links instead of Android asking every time
body: <p>My app is designed to work with various Amazon links but for some reason it has started to always open links instead of the Android system asking every time.</p>
  
  <p>If I click a link on the Amazon website in Chrome my app opens. If I click an Amazon link in an email my app opens.</p>
  
  <p>In my settings I have Android set to Ask every time for Amazon (see screenshot) but it's acting as though it is set as the default.</p>
  
  <p>What's odd is that my app didn't used to do this, and it sometimes doesn't do it now (though only  very occasionally) and instead asks as you would expect. But 95% of the time my app launches automatically.</p>
  
  <p>Now I'm getting reports from users of the same thing.</p>
  
  <p>Is it possible for something in the manifest to cause this (I wouldn't have thought so as that could effectively allow app hijacking) or are my OS settings (and those of the users reporting the problem) messed up?<img src="https://i.stack.imgur.com/ph4fD.png" alt="enter image description here"></p>
  
  <p>Manifest.xml below:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nooriginalthought.amalfi"&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  
      &lt;application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="AmALfi" android:largeHeap="true" android:resizeableActivity="true" android:supportsPictureInPicture="true" android:theme="@style/AppTheme"&gt;
  
      &lt;activity android:name="com.nooriginalthought.amalfi.MainActivity" android:configChanges="orientation|screenSize" android:screenOrientation="portrait" android:launchMode="singleTop" android:theme="@style/AppTheme"&gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN"/&gt;
              &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
          &lt;/intent-filter&gt;
  
          &lt;intent-filter android:label="@string/generate_affiliate_link_with_amalfi"&gt;
              &lt;action android:name="android.intent.action.SEND"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;data android:mimeType="text/plain"/&gt;
          &lt;/intent-filter&gt;
  
          &lt;intent-filter android:label="@string/generate_affiliate_link_with_amalfi"&gt;
              &lt;action android:name="android.intent.action.SENDTO"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;data android:host="*.amazon.ae" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.ae" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.ca" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.ca" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.co.uk" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.co.uk" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com.au" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com.au" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com.br" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com.br" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com.mx" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com.mx" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.de" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.de" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.es" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.es" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.fr" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.fr" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.in" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.in" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.it" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.it" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.jp" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.jp" android:scheme="https"/&gt;
          &lt;/intent-filter&gt;
  
          &lt;intent-filter android:label="@string/generate_affiliate_link_with_amalfi"&gt;
              &lt;action android:name="android.intent.action.VIEW"/&gt;
              &lt;data android:host="*.amazon.ae" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.ae" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.ca" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.ca" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.co.uk" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.co.uk" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com.au" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com.au" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com.br" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com.br" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.com.mx" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.com.mx" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.de" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.de" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.es" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.es" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.fr" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.fr" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.in" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.in" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.it" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.it" android:scheme="https"/&gt;
              &lt;data android:host="*.amazon.jp" android:scheme="http"/&gt;
              &lt;data android:host="*.amazon.jp" android:scheme="https"/&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
          &lt;/intent-filter&gt;
  
          &lt;/activity&gt;
  
          &lt;activity android:name="com.nooriginalthought.amalfi.ManageAffIdsActivity" android:configChanges="orientation|screenSize" android:screenOrientation="portrait" android:theme="@style/AppTheme"/&gt;
  
          &lt;activity android:name="com.nooriginalthought.amalfi.PreviewLinkActivity" android:configChanges="orientation|screenSize" android:screenOrientation="portrait"/&gt;
  
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>