I tried the following code for writing text data, and it's a work fine
NdefRecord mimeRecord = NdefRecord.createMime("text/plain", remainingString.getBytes(Charset.forName("US-ASCII")));
ndef.writeNdefMessage(new NdefMessage(mimeRecord));
This for launch application.
NdefRecord[] records = {NdefRecord.createApplicationRecord("com.demo.abc"),
but i dont understand how to write email content.