PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → NFC in Android - without having a window in focus
NFC in Android - without having a window in focus
Iniciado por bo, jan., 26 2019 4:06 PM - 1 resposta
Publicado em janeiro, 26 2019 - 4:06 PM
Hi

I am making an application, which should be able to run in the background but still read the NFCtag, when the phone is close enough.

I have the code for running with a window in focus using the ""request for refreshing the display of WIN" event, but how do I do it, if I want the NFCReadTag() to be active also when the window is not active ... while the user is using other applications.

best regards
Bo Schor
Membro registado
514 mensagems
Publicado em janeiro, 30 2019 - 2:21 PM
Hi Bo Schor

I'm not quite know about NFC on android but the code you have, you could put it on the background event. This event it's located on the project code, you need to right click on the "P" image where the windows and code windows are put it on. Select Code and then search the event called "Move -Project Name- to the background".

I hope I could put you on the right way.

--
Best Regards
ARV