我已遵循以下文档: https://developer.android.com/google/gcm/gs.html
通过android提供的命令行工具下载并引用Google Play Services 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/
关于java - 如何从 Qt 在 Android 客户端代码中调用 Google-Cloud-Messaging API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29750565/