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

error in QAndroidIntent::putExtra

    XMLWordPrintable

Details

    • Android
    • 9039930c44d94fd101c260ef3abde680fc369501 (qt/qtandroidextras/5.12)

    Description

      the procedure:

      void QAndroidIntent::putExtra(const QString &key, const QByteArray &data)

      { ... m_handle.callMethod<void>("putExtra", "(Ljava/lang/String;[B)Landroid/content/Intent;", QAndroidJniObject::fromString(key).object(), array); ... }

      this callMethod invocation generates at runtime:
      JNI DETECTED ERROR IN APPLICATION: the return type of CallVoidMethodV does not match android.content.Intent android.content.Intent.putExtra(java.lang.String, byte[])

      To solve:

      void QAndroidIntent::putExtra(const QString &key, const QByteArray &data)

      { ... m_handle.callObjectMethod("putExtra", "(Ljava/lang/String;[B)Landroid/content/Intent;", QAndroidJniObject::fromString(key).object(), array); ... }

      Attachments

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

        Activity

          People

            stromme Christian
            bigno Alberto Bignotti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes