如何在Android上使用javax.smartcardio包?

时间:2017-11-01 06:23:04

标签: android smartcard javacard smartcardio

我用smartcardio编写了java控制台应用程序。所有工作都很完美。现在我想在Android中使用这个库。据我所知,Android中不支持smartcardio。我在谷歌搜索过。如果有人知道如何在Android中使用这个库,或者有什么替代方案? 感谢

3 个答案:

答案 0 :(得分:1)

尝试使用此alternative。代码看起来很相似。 您将需要克隆项目。编译jar。并放入Android项目的lib目录。

答案 1 :(得分:0)

您无法在Android中使用smartcardio库,因为您已经想到了。如果您打算通过非接触式界面与智能卡通信,我建议您查看以下库https://developer.android.com/reference/android/nfc/package-summary.html https://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html

如果您打算与SE沟通,可以查看 https://github.com/seek-for-android/pool/wiki/UsingSmartCardAPI

答案 2 :(得分:0)

如果你想使用ccid智能卡读卡器,你必须找到适用于android的ccid库。像acs这样的公司已经发布了用于android的库。

对于非接触式支持,你必须使用android(android.nfc)中定义的特定包。 也许这个链接可以帮到你。 http://www.codexpedia.com/android/android-nfc-read-and-write-example/

祝你好运。

相关问题