2
내 응용 프로그램에는 다음과 같은 필터가 있습니다. 세 가지 mimeTypes를 사용하여 동일한 앱을 시작할 수 있기를 바랍니다.인 텐트 필터를 얻는 방법 MimeType
나중에 NDEF 메시지를 읽었지 만 NDime 메시지 데이터를 적절히 처리 할 수 있도록 mime 형식이 응용 프로그램을 시작하는 데 사용되었는지 확인하려면 어떻게해야합니까?
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/product" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/pesticide" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/seed" />
</intent-filter>
고맙습니다. 작동합니다. – hermann
기꺼이 도와 드리겠습니다! – lentz