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 :
it fails in the emulator BUT works on the real device (display com.philips.rf.MifareStdConnection OK)
Class conn = Class.forName("com.philips.rf.MifareStdConnection");
if(conn.isInterface()) screen.append(conn.getName() + " OK" + "\n");
else screen.append(conn.getName() + " NOK" + "\n");
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 :
I think there must be a way to dynamically cast this object like
conn = Connector.open(System.getProperty("internal.mf.url"));
Any guru here ?
(com.philips.rf.MifareStdConnection) conn = (com.philips.rf.MifareStdConnection) Connector.open(System.getProperty("internal.mf.url"));