谷歌云消息在Delphi XE5? [英] Google Cloud Messaging in Delphi XE5?

查看:166
本文介绍了谷歌云消息在Delphi XE5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,我想移植到德尔福,但我看不到的方式与GCM接口。我想我可能需要运行GCMBaseIntentService在Java和接口与德尔福共享对象?

I've got an android app that I am thinking about porting to Delphi but I can't see a way to interface with GCM. I am thinking I would possibly have to run the GCMBaseIntentService in java and interface with the delphi shared object?

另外,我正在寻找一种方式做推送通知在德尔福Xe5 Android应用程序。

Alternatively, I am looking for a way to do push notifications in a Delphi Xe5 android app.

推荐答案

您使用JNI德尔福接口的Java。该JNI让你在两个方向致电:Java来Delphi或德尔福的Java。所以,你可以用 Java类的扩展你的Delphi应用程序。

You interface Java with Delphi using JNI. The JNI allows you to call in both directions: Java to Delphi or Delphi to Java. So you can extend your Delphi applications with Java classes.

有关实施你想在Android的东西,做它用Java将是更容易的道路可走,因为一些可用的例子做的正是你的想法。只要看看:

For implementing what you want on Android, doing it in Java will be the easier path to follow, as some available examples do exactly what you have in mind. Just have a look:

  • Implementing Push Notification / Google Cloud Messaging for Android
  • Android* Client App Using Cloud-Based Alert Service
  • Github Gist - GCMIntentService.java

要接口的Java JNI和Delphi,你可以按照详细的步骤,从而允许的前端和应用程序的后端之间的顺畅沟通

To interface Java JNI and Delp you can follow detailed steps, thus allowing a smooth communication between front end and back end of your application.

如果您决定重新使用一些code,记得给适当的信贷给作者。

If you decide to re-use some of the code, remember to give appropriate credit to the authors.

这篇关于谷歌云消息在Delphi XE5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆