title: Phone doesn't show my application to open txt-files
body: <p>I'm quite new to android programming and I'm also not the best programmer and the following code should work based on my knowledge... So, that's the issue:
  I want my application to be shown as an option for opening a txt-file on my phone. That's why I created a broadcast receiver, which is specified in my manifest like this:</p>
  
  <pre><code>&lt;receiver android:name="MyBroadcastReceiver" android:enabled="true"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.ACTION_VIEW"/&gt;
                  &lt;action android:name="android.intent.action.ACTION_EDIT"/&gt;
                  &lt;action android:name="android.intent.action.ACTION_PICK"/&gt;
                  &lt;category android:name="android.intent.category.DEFAULT"/&gt;
                  &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
  
                  &lt;data android:scheme="file"/&gt;
                  &lt;data android:mimeType="text/plain"/&gt;
                  &lt;data android:pathPattern=".*\\.txt"/&gt;
                  &lt;data android:host="*"/&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  </code></pre>
  
  <p>And my broadcastreceiver class looks like this:</p>
  
  <pre><code>public class MyBroadcastReceiver extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          Intent intentNoteActivity = new Intent(context, NoteActivity.class);
          intentNoteActivity.putExtra("URI", intent.getData());
          context.startActivity(intentNoteActivity);
      }
  }
  </code></pre>
  
  <p>But if I try to open a txt-file on my phone on where the application is installed it does not show my application. What did I do wrong? </p>