ha_ell
ha_ell

Reputation: 99

Android NFCDemo: Open URL on browser

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

Answers (1)

Rémi F
Rémi F

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

Related Questions