Using: java.lang.String.String(byte[] bytes)
simply do: String b1 = new String(t1) On Oct 21, 10:13 am, xiaoailsa <[email protected]> wrote: > Hi: > I want to write ndef message in the mifare ultralight card , and > communicate with NFC phone. For example:first i write "http://www.google.com" > in to the card, than the phone contact with the card , > the application will desplay "http://www.google.com"and open the > internet. > Now, i can write the ndef message into the mifare ultralight > card,but i don't know how to display ndef message on the phone. > some code: > "NdefMessage mess=tag.getNdefMessage(); > byte[] t1=mess.toByteArray(); > String b1=Hex.byteArrayToHex(t1); > response.setText(b1); " > > b1 message is: (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.....How do i convert it to "http://www.google.com"?? > > Thank you ! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

