Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QNearFieldManager problem

QNearFieldManager problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 142 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    In order to get an event when a mifare badge is readed by the nfc reader I have written these lines of code

        NearFieldManager= new QNearFieldManager(this);
        connect(NearFieldManager, SIGNAL(targetDetected(QNearFieldTarget*)), this, SLOT(targetDetected(QNearFieldTarget*)));
        NearFieldManager->startTargetDetection();
    

    In the destructor I have these lines of code

            NearFieldManager->stopTargetDetection();
            delete NearFieldManager;
    

    Now the problem is that, in an Android device, the nfc reader works only the first start of the app. After that no event will be emitted.
    In order to get the nfc reader working again with my app I have to restart my mobile or unistall and reinstall it.
    Are you working with this object and Android?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved