title: Listening to NFC with a pending intent and an intent
body: <p>I have an app with a pending intent subscribed to <code>ACTION_NDEF_DISCOVERED</code> and a normal intent subscribed to <code>ACTION_TECH_DISCOVERED</code>.</p>
  
  <p>It looks like I need to have the latter intent, so that my app will come up in the NFC selection action screen.</p>
  
  <p>However, with my pending intent (which is modeled after the API reference <a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/nfc/ForegroundDispatch.html" rel="nofollow">code</a>) I have to scan the tag twice for the <code>OnNewIntent</code> to fire.</p>
  
  <p>So a few suspicions arise:</p>
  
  <ol>
  <li>Do I really need two intents to capture both in app scans and out of app scans?</li>
  <li>Why is that the pending intent is requiring two scans? Is it because I’m subscribing with it in the manifest and in code as shown in the sample or because I have two NFC intents (albeit at different NFC intent levels) ?</li>
  </ol>
  
  <p><strong>Here's the core question:</strong></p>
  
  <p>How do I make this work so that, outside of the app my app comes up in the NFC actions window and inside the app only scan is required for <code>OnNewIntent</code> to fire?</p>