Open NFC Simulator not working for Android emulator

别等时光非礼了梦想. 提交于 2019-12-30 04:45:09

问题


I'm trying to emulate NFC card reading in Android Emulator, using Open NFC v4.5.2 for that purpose.

I have followed all steps indicated here:

HOWTO use the NFC Simulator with the Open NFC add-on included in the delivery

I have also tried with insturctions from other StackOverflow posts such this or this, with no success.

When I start the emulator I'm not able to turn-on NFC in Settings->Wireless & networks->NFC, and NFC Controller Simulator doesn't show any activity:

Following is the capture of the Connection Center:

Any hints on how can I make this to work?

EDIT: Following is the output I get from adb logcat:

W/Settings(  381): Setting airplane_mode_on has moved from android.provider.Sett
ings.System to android.provider.Settings.Global, returning read-only value.
W/Trace   (  447): Unexpected value from nativeGetEnabledTags: 0
W/Trace   (  447): Unexpected value from nativeGetEnabledTags: 0
I/NfcService(  381): Enabling NFC
I/packages/apps/Nfc/nxp/jni/com_android_nfc_NativeNfcManager.cpp(  381): com_and
roid_nfc_NfcManager_initialize
E/packages/apps/Nfc/nxp/jni/com_android_nfc_NativeNfcManager.cpp(  381): can't i
nitialize NFC Manager
W/NfcService(  381): Error enabling NFC

I'm working on a Windows 8 Pro machine.


回答1:


I have suspicion that it might depend on versions of image of Android inside the emulator, have you used the image (or whole set) from:

http://open-nfc.org/wp/home/downloads/

or from Google distribution?



来源:https://stackoverflow.com/questions/17523019/open-nfc-simulator-not-working-for-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!