タグを読み取れるアプリを作りたいです。NFCDemo のコードをコピーしましたが、うまくいきませんでした。私も追加しました
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<data android:mimeType="mime/type" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<meta-data android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/nfc_tech_filter" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
私のマニフェストファイルに。
ただし、Nexus S でタグを保持している場合、アプリケーションが呼び出されたり開いたりすることはありません。
助けてくれてありがとう!!