List of usage examples for android.nfc NdefRecord toUri
public Uri toUri()
Currently this method considers the following to be URI records:
From source file:io.v.example.vbeam.vbeamexample.MainActivity.java
@Override protected void onResume() { super.onResume(); Intent intent = getIntent();//from w w w .j av a2 s .c o m if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) { Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); if (rawMsgs != null) { for (int i = 0; i < rawMsgs.length; i++) { for (NdefRecord r : ((NdefMessage) rawMsgs[i]).getRecords()) { System.out.println("record " + r.toString() + "(" + r.toUri() + ")"); } } } } }