fabio55 Member Licensed User Longtime User Sep 27, 2016 #1 I need NFC scanning to be available among several activities my APP has. So I thought a good place to put it is the service module. Is it possible? But how? My working code is now in an activity and in particular in Activity_Resume (as in this tutorial). How should I move the code in the starter service?
I need NFC scanning to be available among several activities my APP has. So I thought a good place to put it is the service module. Is it possible? But how? My working code is now in an activity and in particular in Activity_Resume (as in this tutorial). How should I move the code in the starter service?
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2016 #2 The NFC code should be in an activity. However if you have set the manifest code correctly then your activity will be started when the tag is scanned. Upvote 0
The NFC code should be in an activity. However if you have set the manifest code correctly then your activity will be started when the tag is scanned.
fabio55 Member Licensed User Longtime User Sep 29, 2016 #3 What should I write in the manifest code then? Something like AddActivityText(main, <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="text/plain" /> </intent-filter>) ok this is the solution! Last edited: Sep 29, 2016 Upvote 0
What should I write in the manifest code then? Something like AddActivityText(main, <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="text/plain" /> </intent-filter>) ok this is the solution!