我用 smartcardio 编写了 java 控制台应用程序。一切都很完美。现在我想在 Android 中使用这个库。据我所知,Android 不支持 smartcardio。我在谷歌搜索。如果有人知道我如何在 Android 中使用这个库,或者有什么替代方法?谢谢
3 回答
尝试使用这种替代方法。代码看起来非常相似。您将需要克隆项目。编译罐子。并放入Android项目lib目录。
正如您已经知道的那样,您不能在 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
如果你想使用 ccid 智能卡读卡器,你必须找到适用于 android 的 ccid 库。像 acs 这样的公司已经为 android 发布了库。
对于非接触式支持,您必须使用在 android (android.nfc) 中定义的特定包。也许这个链接可以帮助你。 http://www.codeexpedia.com/android/android-nfc-read-and-write-example/
祝你好运。