简体   繁体   English

Android检查NFC是否启用SIM卡或普通SIM卡

[英]Android check whether NFC enabled SIM card or normal SIM card

I am working with an Android Application. 我正在使用Android应用程序。 The application uses NFC technology and its main task if to do mobile payments. 如果要进行移动支付,该应用程序使用NFC技术及其主要任务。

My Question is, is there any way or any api where I can programatically check if the SIM card is built using NFC chip or not? 我的问题是,有什么方法或任何api我可以编程检查SIM卡是否使用NFC芯片构建? I want to do a check in the application whether there is NFC enabled SIM card or normal SIM card. 我想在应用程序中检查是否有支持NFC的SIM卡或普通的SIM卡。

Thanks. 谢谢。

Found it. 找到了。 Using OpenMobileAPI library, you can open the channel using AID of the applet installed in the UICC. 使用OpenMobileAPI库,您可以使用UICC中安装的applet的AID打开该通道。 If channel open is successful, it means it supports NFC-SWP. 如果频道开放成功,则表示它支持NFC-SWP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM