The following code does exactly what I need it to do:
NdefRecord[] ndefRecords = new NdefRecord[0];
ndefRecords[0] = NdefRecord.createTextRecord ("en", "1");
ndefRecords[1] = NdefRecord.createApplicationRecord("com.example.myapp");
NdefMessage ndefMessage = new NdefMessage(ndefRecords);
writeNdefMessage(tag, ndefMessage);
However....the "createTextRecord" (ln 2) command is only supported at API levels of 21 and above. Does anyone know what the predecessor to this command was...that would operate at API level 15 and above? I'm only trying to write a "Text" record to a variable to be used in a function, but I can't seem to find the appropriate command? Thanks so much for any help!!