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
Qt 6.11 is out! See what's new in the release blog

Send SMS in QT6

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 961 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
    • M Offline
      M Offline
      Myherotr
      Banned
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • M Offline
        M Offline
        Myherotr
        Banned
        wrote on last edited by
        #3
        This post is deleted!
        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