devnied / EMV-NFC-Paycard-Enrollment

A Java library used to read and extract data from NFC EMV credit cards (Android/PCSC).
Apache License 2.0
1.44k stars 586 forks source link

Unresolved reference import javax.smartcardio.CardChannel #49

Closed yura-f closed 5 years ago

yura-f commented 5 years ago

Hi, I've an android project on Kotlin and when I try create Provider how into sample, I haven't import the package: import javax.smartcardio.CardChannel

How fix it?

nawif commented 5 years ago

same issue here

yura-f commented 5 years ago

@devnied hi! perhaps to the android app don't need the classes from the package javax.smartcardio.* If it's possible, can you give an explanation about this question?

Thx!

P.s. How I think, on Android we have to use IsoDep instead of CardChannel

netmindz commented 5 years ago

That example is for java on the desktop, not Android. You need to use the Android NFC APIs not the PCSC framework