I found something interesting, while reading all the docs.
It seems that the mifare api was packaged under com.philips.rf.MifareStdConnection in the real device.
When i use this code :
Code:
Class conn = Class.forName("com.philips.rf.MifareStdConnection");
if(conn.isInterface()) screen.append(conn.getName() + " OK" + "\n");
else screen.append(conn.getName() + " NOK" + "\n");
it fails in the emulator BUT works on the real device (display com.philips.rf.MifareStdConnection OK)
which can mean that the mifare API is really in the phone (SW version 3.12).
So the problem is : how to map com.nokia.nfc.nxp.mfstd.MFStandardConnection to com.philips.rf.MifareStdConnection ?
Without the reflex package, my knowledge in j2me stops here and i don't know how to get this next line working :
Code:
conn = Connector.open(System.getProperty("internal.mf.url"));
I think there must be a way to dynamically cast this object like
Code:
(com.philips.rf.MifareStdConnection) conn = (com.philips.rf.MifareStdConnection) Connector.open(System.getProperty("internal.mf.url"));
Any guru here ?