我如何在 Qt 的 android 客户端代码中调用 Google-Cloud-Messaging API?

How do i call the Google-Cloud-Messaging API in my android client code from Qt?

我遵循了这些文档: https://developer.android.com/google/gcm/gs.html

正在通过 android 提供的命令行工具下载和引用 Google Play 服务 API。我已经创建了 AndroidManifest.xml,现在我准备创建一个 Android GCM 客户端。

问题是:我正在使用 Qt,所有这些库都是 Java。

如何在我的代码中调用 API?我是否需要 #include 或从我的代码中导入某些内容才能调用 Java 函数?

学习本教程
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ 或者这个 http://programmerguru.com/android-tutorial/how-to-send-push-notifications-using-gcm-service/

http://doc.qt.io/qt-5/qandroidjniobject.html

模块 "QT += androidextras" 允许 Qt 在应用程序中集成 Java。