Open NFC Simulator does not work for Android emulator

I am trying to emulate NFC card reading in Android Emulator using OpenNFC v4.5.2 for this.

I followed all the steps listed here:

HOWTO uses the NFC simulator with the addition of Open NFC included in the package.

I also tried using other StackOverflow posts such as this or without any success.

When I run the emulator, I cannot turn on NFC in Settings->Wireless & networks->NFC , and NFC Controller Simulator does not show any activity:

Emulator NFC settingsNfc simulator

The following captures the Connection Center:

Connection center

Any tips on how I can get this to work?

EDIT: The following is the output obtained 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 am working on a Windows 8 Pro machine.

+6
source share
1 answer

I have a suspicion that this may depend on the version of the Android image inside the emulator, you used the image (or the whole set):

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

or from the google distribution?

0
source

Source: https://habr.com/ru/post/948926/


All Articles