title: Android NFC Write NFCA tag
body: <p>I've a problem when I try to write a NFC A tag on Android 2.3.6 (nexus S). I use the code from this example:
  <a href="http://www.jessechen.net/blog/how-to-nfc-on-the-android-platform/" rel="nofollow">http://www.jessechen.net/blog/how-to-nfc-on-the-android-platform/</a></p>
  
  <p>More precisely, when I do the Ndef.get(mytag) I get null so I cannot write my tag.</p>
  
  <p>Here is the code from which I get a null references (the 'tag' value is not null), only the ndef.</p>
  
  <pre><code>Ndef ndef = Ndef.get(tag); 
  
  if (ndef != null) {
      ndef.connect();
      if (!ndef.isWritable()) {
          return false;
      }
      if (ndef.getMaxSize() &lt; size) {
          return false;
      }
      ndef.writeNdefMessage(message);
      return true;
  }
  </code></pre>
  
  <p>Thank you for you help !!!</p>