Hello,

im trying out some new nexus s nfc functionality. since mifare
emulation is not (so far?) available for this device (or just
software?) im playing with proximity cards.
basically, i have a mifare desfire ev1 chip but for some reason i
cannot communicate it using NfcA.transcieve - im gettin IOException
with null getMessage().
Below is found the code i use. I can get valid id and techlist from
the tag. This code uses its own thread as well.

                try {
                        Tag tag = 
intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);

                        txtTagId.setText(Tools.getHexString(tag.getId()));
                        txtTagTech.setText(Tools.join(", ", tag.getTechList()));

                        NfcA T = NfcA.get(tag);

                        T.connect();

                        final byte[] APDU_getVersion = new byte[] { 0x60 };

                        byte[] response = T.transceive(APDU_getVersion);

                        T.close();

                        // notifyAll();
                } catch (Exception e) {
                        Tools.DisplayException(e, ctx);
                } finally {

                }

Do you suggest any changes to the code?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to