What is the official API in Qt5.2 (which started supporting Android and iOS officially) for sending text messages? or generally the Messaging API.
Asked
Active
Viewed 3,384 times
3
-
I hope for this simple task, I don't have to go through JNI! – Mousa Feb 10 '14 at 08:45
-
AFAIK you will have to fallback to the NDK provided classes, since there is no direct access to the phone core features. The accessibility is still in development here. – Sebastian Lange Feb 10 '14 at 10:52
1 Answers
2
Currently Qt mostly work for GUI only stuff on Android. To be able to do what you want you have to call Java code from C++. I suggest you start of by extending QtActivity (and call super on the functions already implemented like onCreate() etc.). Then you would have to code using the Android SMS Manager class.
More information and an example on how to call Java code from C++/Qt can be found here.
This should get you started if you decide to proceed.

uniquenamehere
- 1,869
- 3
- 31
- 60
-
Thanks. I was just exploring the technology, and deciding whether to port my Symbian Qt app to Android in this way, or completely rewrite it. So it seems Qt for Android is not there yet to be a real alternative and I have to stick to native Android. – Mousa Feb 11 '14 at 08:50