title: Implicit intent does not find activity if data type is specified
body: <p>I am trying to make an example of invoking an activity using implicit intent.
  <a href="https://developer.android.com/guide/components/intents-filters#kotlin" rel="nofollow noreferrer">Intents and Intent Filters</a>
  I do it according to the code of the example indicated here.</p>
  <pre><code>getSecondActivity.setOnClickListener() {
  
          val gameNameStr = getTextFromView(gamerName)
          val gameStatusStr = getTextFromView(gameStatus)
          if (gameNameStr != null &amp;&amp; gameStatus != null) {
  
  
              val sendIntent = Intent().apply {
                  action = Intent.ACTION_VIEW
                  putExtra(GAMER_NAME, gameNameStr)
                  putExtra(GAME_STATUS, gameStatusStr)
                  type = &quot;text/plain&quot;
              }
              //Verify the original intent will resolve to at least one activity
              if (sendIntent.resolveActivity(packageManager) != null) {
                  startActivity(sendIntent)
              } else {
                  Toast.makeText(this@MainActivity, &quot;No Activity&quot;, Toast.LENGTH_SHORT).show()
              }
          }
      }
  </code></pre>
  <p>I specified filters in the manifest.</p>
  <pre><code> &lt;activity android:name=&quot;.ShowInfoFromFirst&quot;&gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
              &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  <p>At startup, a message is displayed that no matching activity was found. If I remove the type, then everything works. I came across a description in the class Intent.java
  &quot;type -- Specifies an explicit type (a MIME type) of the
  intent data.  Normally the type is inferred from the data itself.
  By setting this attribute, **you disable that evaluation and force
  an explicit type &quot;
  Then I do not understand why the example does not work for me.</p>