i have a problem to read Mifare Utralight card(ntag203), how can i read the data from the card?
i using NFC libraries 1.23.
here is my code:
manifest:
Every time device read the card show log failed. please help me.
Thanks!
i using NFC libraries 1.23.
here is my code:
B4X:
Sub Process_Globals
Dim Obj_Phone2 As Phone
Dim AndroidSdk10 As Boolean : AndroidSdk10 =False
If Obj_Phone2.SdkVersion >= 10 Then
AndroidSdk10 = True
Dim NFC As NFC
End If
End Sub
B4X:
Sub Activity_Resume
Read
End Sub
B4X:
Sub Read()
If AndroidSdk10 = True Then
If NFC.IsNdefIntent(Activity.GetStartingIntent) Then
Log("Read successful.")
Else
Log("Failed")
End If
End If
Else
Msgbox("Please enable the NFC function","NFC Error")
Dim DoAction As Intent
DoAction.Initialize("android.settings.NFC_SETTINGS", "")
StartActivity(DoAction)
End If
End Sub
manifest:
B4X:
AddActivityText(Main, <intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="*/*" />
</intent-filter>)
Every time device read the card show log failed. please help me.
Thanks!