Problem with the NFC (Near Field Communication) component

Original content

Buongiorno,

ho un problema con il componente NFC (Near Field). Ho creato un’app che utilizza questo componente, soltanto che quando apro l’app che ho creato e appoggio un Tag NFC sul mio cellulare, l’app si riavvia. Lo stesso problema lo dava anche la piattaforma Mit App Inventor. Ho anche provato a scaricare l’app su un altro cellulare, ma il problema si ripropone ugualmente.
Qualcuno mi potrebbe aiutare gentilmente?

Good morning, I’m having a problem with the NFC (Near Field Communication) component. I created an app that uses this component, but when I open the app and place an NFC tag on my phone, the app restarts. The MIT App Inventor platform also had the same problem. I also tried downloading the app on another phone, but the problem still occurs. Could someone please help me?

Translated by MOD

Use logcat to find out what is going on

Taifun

I solved the “problem” of why the app was restarting when I brought an NFC tag close to my phone, but now I have a new issue. When I place an NFC tag containing the following text: “1”, the phone asks me which app I want to use to continue the action, even though I already have my app open. How can I make it so that it doesn’t ask me every time which app to use to complete the action, but instead uses the app that I already have open on the phone?

Translated by RaYzZz

Hi dear,

Usually you can choose the default app and set it once and for all without having to select it every time, but it remains a decision of the user.

I believe it is also possible to slightly force the behavior by modifying the manifest file.