Skip to main content
Visitor II
April 17, 2024
Solved

Android SDK without intent of a recognised tag

  • April 17, 2024
  • 1 reply
  • 1078 views

Hello together
I am working on NDEF and mailbox communication between an Android smartphone and an X-Nucleo-NFC04A1 Eval Board. The Eval Board X-Nucleo-NFC04A1 communicates with a MB1717 STM32C031 board.

The embedded part works perfectly, the implementation was quick and easy thanks to the good lib you provide on the embedded page.

On the Android smartphone part (Android 14 with Google Pixel 6a) I have implemented your SDK with version ST25SKD-1.10.3 in a small test project. I have the project running with AndroidStudio and Gradle 8.7 without any errors.
But. It cannot recognise a single NFC tag. Whatever I try, it is unsuccessful. The function inten.getAction always returns a null. In the attachment I send you the small example project. 
I have noticed that some deprecated functions are used in your Java class "TagDiscovery.java". Is there a newer version?
Could you please check where the error or my misunderstanding lies in the application?
Thank you very much.

RoM

    This topic has been closed for replies.
    Best answer by France Berthelot

    Hello

    Just change line 119 of main activity the 

    PendingIntent.FLAG_IMMUTABLE

    to

    PendingIntent.FLAG_MUTABLE

    and you will discover Tags.

    Concerning the class TagDiscovery.java, it is updates according to our released Tags.

    Hope this help?

    BR, FB

     

    1 reply

    ST Employee
    April 24, 2024

    Hello

    Just change line 119 of main activity the 

    PendingIntent.FLAG_IMMUTABLE

    to

    PendingIntent.FLAG_MUTABLE

    and you will discover Tags.

    Concerning the class TagDiscovery.java, it is updates according to our released Tags.

    Hope this help?

    BR, FB

     

    RMich.2Author
    Visitor II
    April 25, 2024

    Hi France

    Thank you for your answer, I will check it out.

    Kind regards
    RoM