0
ACR122U NFCリーダーを接続してVirtualBoxで動作するAndroid 4.4を使用します。Android 4.4。 VirtualBoxがACR122Uリーダーにアクセスできない
私はマニフェストに数行追加します:
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />
そして:
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
そして
nfcAdapter = NfcAdapter.getDefaultAdapter(this);
if(nfcAdapter == null) {
Toast.makeText(this, "NFC NOT supported on this devices!", Toast.LENGTH_LONG).show();
によってNFCリーダーをチェックしかし、NFCではないメッセージを受信しようとサポートされます。どこが間違っていますか?
確かにNFCリーダーをPCに接続し、エミュレータでAndroid NFCリーダーとして使用したいのですか? – LaurentY