title: Mail is redirecting to my app after it has been used to open my app on android
body: <p>I implemented filter-activity to open my app from url in e-mail and pass url to it. It works fine on the 1st trail: I open email, touch the link in e-mail, it asks me which app to use, I select my app and it goes fine.</p>
  
  <p>However, now when I try opening Mail app again, to say open other e-mails, Mail app does not let me see e-mail it just brings me directly to my app without any data from the e-mail. I have to force quit my app to be able to open Mail again.</p>
  
  <p>I tried GMail App with my app, it does not do that, it works as supposed to, i.e. takes me always to see e-mails. I wonder if there is something I missed so Android Mail app gets messed up.</p>
  
  <p>Thanks.</p>
  
  <p>here is filter from manifest file:</p>
  
  <pre><code>&lt; intent-filter&gt;
              &lt; action android:name="android.intent.action.VIEW" /&gt;
              &lt; category android:name="android.intent.category.DEFAULT" /&gt;
              &lt; category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt; data android:scheme="http" android:host="myhost.com"/&gt;
  &lt; /intent-filter&gt;
  
  in the app i pull url like this:
  
  @Override public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      Intent intent = getIntent();
          Uri uri = intent.getData();
          if (uri!=null){
          String msgFromUrl=intent.getDataString();
          try {
              msgFromUrl = java.net.URLDecoder.decode(msgFromUrl, "UTF-8");
          } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
          }
          if(msgFromUrl.length()&gt;0){
              Toast.makeText(this, msgFromUrl, Toast.LENGTH_LONG).show();
          }
         }
    ...
  }
  </code></pre>