NdefRecord[] recs = mMessage.getRecords();
NdefRecord record = recs[0];
if (Arrays.equals(record.getType(), NdefRecord.RTD_URI)) {
Uri u = record.toUri();
String data = u.toString();
Intent j = new Intent(Intent.ACTION_VIEW);
j.setData(u);
startActivity(j);
}