Hello
I'm working on an NFC app, so i added the ability to launch the app by tapping a nfc tag.
All works good, thing is when launched throu a "tap", the app cannot go into background, it will automatically die when anything makes it leave the foreground.
On a couple devices with android <5, it will die as soon as the task manager soft button is pressed, on another device running android 5, the task manager can be opened (and instead of my name/icon, i see "NFC SERVICE" with the nfc icon) but the app will die if another app is sent to the foreground
From my manifest:
and this is the filter:
Any idea on why does this happen?
Thanks
I'm working on an NFC app, so i added the ability to launch the app by tapping a nfc tag.
All works good, thing is when launched throu a "tap", the app cannot go into background, it will automatically die when anything makes it leave the foreground.
On a couple devices with android <5, it will die as soon as the task manager soft button is pressed, on another device running android 5, the task manager can be opened (and instead of my name/icon, i see "NFC SERVICE" with the nfc icon) but the app will die if another app is sent to the foreground
From my manifest:
B4X:
AddActivityText(Main, <intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED"/>
</intent-filter>)
AddActivityText(Main,<meta-data
android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/tech_filter" />
)
and this is the filter:
B4X:
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<tech-list>
<tech>android.nfc.tech.NfcV</tech>
</tech-list>
</resources>
Any idea on why does this happen?
Thanks