Is it possible to write an intent object to an NFC tag? For example, if I could write the following intent to an NFC tag:
String phoneNumber = "5555555555";
Uri uri = Uri.parse("sms:" + phoneNumber);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.putExtra("address", phoneNumber);
intent.setType("vnd.android-dir/mms-sms");
String intentAsUri = intent.toUri(0);
// = #Intent;action=android.intent.action.VIEW;type=vnd.android-dir/mms-sms;S.address=5555555555;end
then I could write the output uri as a url data to an NFC tag. When a user taps my tag, android interprets as the above intent, and launches an sms messenger? It doesn't seem to work, and I don't know that there's a way to serialize an intent object itself onto an NFC tag (or that android would know to interpret one)
Thanks