seek-for-android / pool

Migrated repo from Google Code, contains legacy code and wiki.
159 stars 63 forks source link

How can i use SmartCardAPI in Android Studio #107

Open itlgl opened 6 years ago

itlgl commented 6 years ago

in wiki https://github.com/seek-for-android/pool/wiki/UsingSmartCardAPI,sample is use Eclispe. can i create project in Android Studio?

jjimenez0611 commented 6 years ago

Good Question... How can I integrate this project in Android Studio? Would be nice a little example in Android Studio...

m2kk commented 6 years ago

I was just able to run the sample projects by importing them to AndroidStudio, in case of like "HelloSmartcard" then just copy the jar to the lib folder, and add the dependency statement in your gradle file for the jar file, and everything runs (at least compiles).

juansapr commented 5 years ago

m2kk you are right about that it did compile, but the problem is that the reader doesn't works and I get this error "Attempt to invoke virtual method 'com.mobilesecuritycard.openmobileapi.Reader[] com.mobilesecuritycard.openmobileapi.SEService.getReaders()' on a null object reference." Someone told me that the error happens when the device don't support SE. However, I don't believe that is the reason because I tried with 3 different phones. Does someone have any idea?