Reputation: 99
I try to use the android NFCDemo on the android emulator because I haven't an android phone. The demo work well but my question is how to change the MockNdefMessage to open the URL tag on the browser. This an example of NDEFmessage:
public static final byte[] SMART_POSTER_URL_NO_TEXT =
new byte[] {(byte) 0xd1, (byte) 0x02, (byte) 0x0f, (byte) 0x53, (byte) 0x70, (byte) 0xd1,
(byte) 0x01, (byte) 0x0b, (byte) 0x55, (byte) 0x01,
(byte) 0x67, (byte) 0x6f, (byte) 0x6f, (byte) 0x67, (byte) 0x6c, (byte) 0x65,
(byte) 0x2e, (byte) 0x63,(byte) 0x6f, (byte) 0x6d};
Upvotes: 1
Views: 773
Reputation: 1335
Try to look into the official DevGuide : there is a topic on NFCBasics and especially how to define URI in NdefMessage.
Upvotes: 1