title: Android App Links not working, is it because of Annotations?
body: <p>I'm new to Android, still learning it, and I have a project that uses AndroidAnnotations, and want to implement App Links.</p>
  
  <p>I read the documentation (<a href="https://developer.android.com/training/app-links/index.html" rel="nofollow noreferrer">here</a>) and even read some questions here on Stackoverflow.</p>
  
  <p>Following the documentation, the intent-filter inside the Manifest is:</p>
  
  <pre><code>&lt;intent-filter android:autoVerify="true"&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
              &lt;action android:name="android.intent.category.DEFAULT" /&gt;
              &lt;action android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;data android:scheme="http" android:host="real.host.here" /&gt;
              &lt;data android:scheme="https" android:host="real.host.here" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>The intent is inside an activity, and the only thing different from all the examples I found is that my activity is like this:</p>
  
  <pre><code>&lt;activity
      android:name=".activities.MainActivity_" ...&gt;
      &lt;intent-filter...&gt;...&lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>Because of AndroidAnnotations, the name is ".MainActivity_", not "MainActivity".</p>
  
  <p>Beside that, the hosted assetlinks.json is accessible by HTTPS connection, here is my file:</p>
  
  <pre><code>[{
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.my.package.name",
      "sha256_cert_fingerprints":["32:D9:9E:17:2E:C7:B4:82:12:96:C8:3E:D1:51:56:3F:7C:ED:97:69:F9:4A:39:54:4C:7B:AD:8A:AD:27:8F:45"]
    }
  }]
  </code></pre>
  
  <p>The SHA256 fingerprints is from the certificate I use to build the release version of the app.</p>
  
  <p>I already tested with the <a href="https://developers.google.com/digital-asset-links/tools/generator" rel="nofollow noreferrer"> Statement List Generator and Tester</a> tool and the result is a success.</p>
  
  <p>And just to be sure, I always test with the signed apk and the phone I'm testing it is an Android 6.0.</p>
  
  <p>When I confirm the digital asset link files with this</p>
  
  <pre><code>https://digitalassetlinks.googleapis.com/v1/statements:list?
  source.web.site=https://&lt;domain1&gt;:&lt;port&gt;&amp;
  relation=delegate_permission/common.handle_all_urls
  </code></pre>
  
  <p>I get this message:</p>
  
  <pre><code>... "debugString": "********************* ERRORS *********************\nNone!\ ...
  </code></pre>
  
  <p>But when I try this command</p>
  
  <pre><code>adb shell am start -a android.intent.action.VIEW \
  -c android.intent.category.BROWSABLE \
  -d "http://&lt;domain1&gt;:&lt;port&gt;"
  </code></pre>
  
  <p>It opens the browser, not the app.</p>
  
  <p>I really would like to know what could be wrong here.</p>