HELP NFC Library NOT WORKING IN SONY EXPERIA SOLA

ferdztech

Member
Licensed User
Longtime User
Im using this sample code from NFC library

B4X:
Sub Process_Globals
    Dim NFC As NFC
End Sub

Sub Activity_Resume
    If NFC.IsNdefIntent(Activity.GetStartingIntent) Then
        Dim records As List
        records = NFC.GetNdefRecords(Activity.GetStartingIntent)
        For i = 0 To records.Size - 1
            Dim r As NdefRecord
            r = records.Get(i)
            Log(r.GetAsTextType)
        Next
    End If
End Sub

In Manifest Editor, For Text Data

B4X:
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>)


Below is the type of tags i used
-Xperia SmartTags
-Badges intelligent Xperia
-Etiquetas inteligent Xperia


The Problem is when i tap the tag No Output. No Record/Logs. I can only see activity resume in the logs

Compilation is ok...
 
Last edited:
Top