How can I start my Android app just with reading the ST25DV?
Hi, I´m doing a project in which I have to programm an android app which shall write and read the mailbox. Using the ST25DV Demo app I figured out, how to read and write the Mailbox. A nice feature of the app should be, that I can read the tag and choos between various apps which can handle the technology.
What I want is: I read the Tag, then there is a android dialoge which shows my app that I can choose to open.
My Android-Manifest contains following code:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain" />
</intent-filter>
<meta-data
android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/nfc_tech_filter" />
In the "nfc_tech_filter" I added the techlists like in the ST25DV demo app:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- capture all ISO14443A tags (NFC tags Type 4)-->
<tech-list>
<tech>android.nfc.tech.NfcA</tech>
<tech>android.nfc.tech.IsoDep</tech>
<tech>android.nfc.tech.Ndef</tech>
</tech-list>
<!-- capture all ISO15693 tags -->
<tech-list>
<tech>android.nfc.tech.NfcV</tech>
</tech-list>
<tech-list>
<tech>android.nfc.tech.NdefFormatable</tech>
</tech-list>
<tech-list>
<tech>android.nfc.tech.NfcV</tech>
<tech>android.nfc.tech.Ndef</tech>
</tech-list>
<tech-list>
<tech>android.nfc.tech.NfcV</tech>
<tech>android.nfc.tech.NdefFormatable</tech>
</tech-list>
<!-- capture all ISO14443B tags tags -->
<tech-list>
<tech>android.nfc.tech.NfcB</tech>
<tech>android.nfc.tech.NdefFormatable</tech>
</tech-list>
</resources>
If I scan my debit card, I can choose between various apps that I can start, including my own app. If I scan the St25DV, there is just the Dialog to choose between Google Play Store and Huawei App Galery.
I hope you understand my problem and have an advice or a solution.
Thank you very much for your time.
Michel
