Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Send SMS in QT6
Forum Updated to NodeBB v4.3 + New Features

Send SMS in QT6

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 188 Views
  • 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.
  • H Offline
    H Offline
    Hamed_S
    wrote on last edited by
    #1

    Hi Everyone.
    i have written following syntax in order to send SMS but i face error. please let me know if anybody has solution in the regard.

    C++ code in QT6:
    QJniObject ::callStaticMethod <void>("sendMessage" (ILjava/lang/String;Ljava/lang/String;)V", msgId, myPhoneNumber.object<jstring>(),

    and got this error while running in android mobile:
    JNI DETECTED ERROR IN APPLICATION: GetStaticMethodID received NULL jclass

    original sendMessage function in QT5:

    QtAndroid::androidActivity().callMethod<void>("sendMessage", (ILjava/lang/String;Ljava/lang/String;)V",
    msgId,myPhoneNumber.object<jstring>(),
    myTextMessage.object<jstring>());

    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