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

QtNFC: Fail to write image using ndefeditor

XMLWordPrintable

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

      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.
       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes