title: Android NFC passing single parameter when starting application
body: <p>I would like to start an application using an NFC tag. I got that part working using an android application record (AAR) as described in <em><a href="https://stackoverflow.com/q/10840439/2425802">Start Android application from NFC-tag with extra data</a></em> or by using <code>NDEF_DISCOVERED</code> / <code>TECH_DISCOVERED</code> intent filters. But how do I pass data from the NFC tag (e.g. some text) to my activity upon starting it through the NFC event?</p>
  
  <p>I've read through <a href="http://developer.android.com/guide/topics/connectivity/nfc/nfc.html" rel="nofollow noreferrer">NFC Basics</a>, but as far as I understand that it seems to want to implement a mechanism for reading the tag, when I really do not want to re-read the tag once the app is opened by the tag, but instead I just want the data passed in at the same time.</p>
  
  <p>Moreover, these mechanisms seem to allow the app to read the tag after it has been started by the tag. In other words, I am worried that if someone hits the tag later when the app is already opened that tag will be read again (which is what I do <strong>not</strong> want).</p>
  
  <p>Second, how do I create such NDEF message?</p>