1

我想在我NDEFmessage的 Android NFCDemo 上添加操作以在我单击 URL 时启动浏览器。

我有这样的代码:

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,
    /*the action type record*//         
    (byte) 0x11,(byte) 0x01,(byte) 0x61,(byte) 0x63 ,(byte) 0x74, (byte) 0x00
};

但这不起作用。

4

0 回答 0