Reading multiple text records from an NFC tag <p>In my application, I have three text fields which are then written to an NFC tag by tapping the Write button. I've followed the Android Developers site to develop this application. And following is the function that writes the data to the tag.</p> <p><strong>Code</strong><br></p> <pre><code>private void write(String uname,String locid,String secid,Tag tag)throws IOException, FormatException{ NdefRecord[] records={NdefRecord.createTextRecord("",uname),NdefRecord.createTextRecord("",locid),NdefRecord.createTextRecord("",secid),NdefRecord.createApplicationRecord("com.testprojects.gcdev")}; NdefMessage message=new NdefMessage(records); Ndef ndef=Ndef.get(tag); ndef.connect(); ndef.writeNdefMessage(message); ndef.close(); } </code></pre> <p>Now I want to read the records from the NFC tag in another activity. Which method should I use to read the content from the tag.</p> <p><strong>Note:</strong> I'm leaving the languageCode part empty in the createTextRecord() method because I don't know what should be passed and in <a href="https://developer.android.com/reference/android/nfc/NdefRecord.html#createTextRecord" rel="nofollow">Android Developer site</a>, it says "If locale is empty or null, the language code of the current default locale will be used." So if you know what languageCode should be passed, do let me know.</p>