Send SMS in QT6
-
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 jclassoriginal sendMessage function in QT5:
QtAndroid::androidActivity().callMethod<void>("sendMessage", (ILjava/lang/String;Ljava/lang/String;)V",
msgId,myPhoneNumber.object<jstring>(),
myTextMessage.object<jstring>());