Android Question NFC tag type not supported in Android 7

ajk

Active Member
Licensed User
Longtime User
Started testing my app on android 7 I have found the

"NFC tag type not supported" response

It works perfectly on previous versions of Android

How to solve this? Any clue?
 

DonManfred

Expert
Licensed User
Longtime User
As far as i know it depends on the Device-Implementation which Tags are supported.
Each device can have different Tags which are supported.

I don´t think that this came from the Android System Version alone.
 
  • Like
Reactions: ajk
Upvote 0

ajk

Active Member
Licensed User
Longtime User
Thank your for answers:
Marco: I have found you post before I have asked the question.
Without applying it I can read one of three different tags (samsung galaxy a5, of course all of them were readable on eg. sony D2302)
So only "some" tags specified by phone producer can be read on samsung = we are close to DonManfred answer
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
I'm not sure about this. But having done the test on 3 samsung phones one with version 7 and others with version 5 and 6 i had to adopt this solution. Maybe the great Don have right ( Hi Don ), anyway you could use this code:

B4X:
            If techs.IndexOf("android.nfc.tech.NfcA") > -1 Then
                TagTech.Initialize("TagTech", "android.nfc.tech.NfcA" , si)
                TagTech.Connect
            Else
                  If techs.IndexOf("android.nfc.tech.Ndef") > -1 Then
                      TagTech.Initialize("TagTech", "android.nfc.tech.Ndef" , si)
                      TagTech.Connect
                  Else
                       ToastMessageShow("Tag does not support Ndef.", True)
                  End If
            End If
     
        End If

this way it will not depend on the android version, but on the device
 
Upvote 0

ajk

Active Member
Licensed User
Longtime User
Yes but this send us back to the question in 1 post.

I have tested tags with NFC tools, this gives results:
NFC tag not supported, but read card serial number. And for me it would be enough - because I can compare the item marked with card with description in my database.
So the question looks like: how to read card serial number?
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Yes but this send us back to the question in 1 post.

I have tested tags with NFC tools, this gives results:
NFC tag not supported, but read card serial number. And for me it would be enough - because I can compare the item marked with card with description in my database.
So the question looks like: how to read card serial number?

sorry but i dnot understand your question. In #1 Post you write:

Started testing my app on android 7 I have found the

"NFC tag type not supported" response

It works perfectly on previous versions of Android

How to solve this? Any clue?

The code #5 resolve this
 
Upvote 0

ajk

Active Member
Licensed User
Longtime User
The code in 5 results in information: "Tag does not support Ndef", and as I stated in previous post - using
other software like "NFC tools" I can read tag number. This number could be useful for me, so the question how to read this number?
 
Upvote 0

ajk

Active Member
Licensed User
Longtime User
Yes, as I stated eg sony with 4.4 works perfectly. Similar situation with other apps like NFC Tools or TagWriter. B4A app and two mentioned above apps return same informations - on sony information about NFC records, on samsung in one case - correctly report information about tag in two other cases I see message that "Tag does not support Ndef"

Reading tags information with NFC Tools "command like tool" > advanced NFC commands I can read in this two "unreadable"
tags their serial numbers. The format of this number in the case of correctly reading tag is:

xx:xx:xx:xx:xx:xx:xx

in case of "ureadable" tags I have

xx:xx:xx:xx

Numbers seems to be unique so it could be useful to be able to read them. That's the reason of my quesiton: how to read this number?
 
Upvote 0
Top