Je dois échanger l'APDU avec une carte SIM sur un smartphone.net.rim.device.api.smartcad.SmartCardNoCardPresentException lors de l'appel SmartCardReader.openSession()
J'ai fait une petite fonction de test pour essayer ceci en utilisant la carte SIM de mon transporteur (Rogers).
SmartCardReader[] allReaders = SmartCardReaderFactory.getInstalledReaders();
for(int readerIndex = 0; readerIndex < allReaders.length; ++readerIndex) {
try {
SmartCardReaderSession session = allReaders[readerIndex].openSession();
}
catch(Exception e) {
System.err.println(e.toString());
}
}
Mais je continue d'obtenir l'exception SmartCardNoCardPresentException.
De toute évidence, la carte SIM est présente, (je peux l'utiliser pour passer un appel téléphonique) mais isSmartCardPresent() renvoie false. Notez que je ne l'utilise pas sur le simulateur, il ne fonctionne que sur un vrai téléphone. J'utilise la torche 9810 comme cible.
Notez également que j'ai signé mon application.
N'importe quel indice/conseil serait apprécié.