Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94026

QtNFC: Fail to write image using ndefeditor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.1.0
    • Connectivity: NFC
    • None

    Description

      Running the ndefeditor example on Android. An attempt to write a MIME image record fails.

      The log shows the following exceptions on Java side:

      W System.err: java.lang.NoSuchMethodError: no non-static method "Landroid/nfc/tech/Ndef;.setTimeout(I)V"
      W System.err: 	at org.qtproject.qt.android.QtNative.startQtApplication(Native Method)
      W System.err: 	at org.qtproject.qt.android.QtNative$7.run(QtNative.java:628)
      W System.err: 	at org.qtproject.qt.android.QtThread$1.run(QtThread.java:61)
      W System.err: 	at java.lang.Thread.run(Thread.java:923)
      W System.err: java.io.IOException
      W System.err: 	at android.nfc.tech.Ndef.writeNdefMessage(Ndef.java:320)
      W System.err: 	at org.qtproject.qt.android.QtNative.startQtApplication(Native Method)
      W System.err: 	at org.qtproject.qt.android.QtNative$7.run(QtNative.java:628)
      W System.err: 	at org.qtproject.qt.android.QtThread$1.run(QtThread.java:61)
      W System.err: 	at java.lang.Thread.run(Thread.java:923)
      

      A quick look at the docs shows, that Ndef class does not have the setTimeout() method, so the QNearFieldTargetPrivateImpl::setCommandTimeout() method should be fixed.
       

      Attachments

        Issue Links

          Activity

            People

              cnn Qt Core & Network
              ivan.solovev Ivan Solovev
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: