Skip to content
/ sendSMS Public

Qt app to send SMS on Android devices (support multi-part messages). Listen for Sent and Delivery confirmation

Notifications You must be signed in to change notification settings

mbruel/sendSMS

Repository files navigation

sendSMS

Qt app to send SMS on Android devices (support multi-part messages).

All the sending is made in a custom Activity in Java inheriting from QtActivity, cf MyActivity.java The Android SMS sending implementation has been following Supertos article

C++ code use JNI via QtAndroid::androidActivity().callMethod BroadcastReceiver from Android uses JNI native calls to notify back the C++ objects

Correspondance between Java native functions and C++ is done in native.cpp (following KDAB example)

From a new project (QML project), you must Create the Android Templates (QtCreator -> Project -> Build -> Android -> Create Templates) Once done:

  • open the AndroidManifest.xml within QtCreator to add the SEND_SMS permission
  • edit AndroidManifest.xml with a text editor to change the manifest package name (line 2) but also the activity name that should be MyActivity (line 16)

Appart from that, calling Android is not that difficult ;)

sendSMS on Xiaomi Redmi

Cheers!

About

Qt app to send SMS on Android devices (support multi-part messages). Listen for Sent and Delivery confirmation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published