Push notification on android: IBM MQTT

我的梦境 提交于 2019-12-08 03:31:12

问题


I am very new to android environment and have to set up client side using the (wmqtt.jar) sample application given on http://www-01.ibm.com/support/docview.wss?

I know only about hello world program.

Kindly tell how can I integrate it in my simple android application, step by step.

Thanks and Regards.


回答1:


There is a good example and run through at http://dalelane.co.uk/blog/?p=1599

I'd also point out that you might be better off with the recently released open source Java client. You can find it at http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git/ - you should find the licence is much friendlier than for wmqtt.jar.




回答2:


As Roger says, the best / latest Java client code is that available from the Eclipse Paho project - http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git/

The IA92 code and wmqtt.jar has a difficult license and does not support some of the latest features like authentication.

In addition, you will find a lot of useful links and information on the mqtt.org wiki http://mqtt.org/wiki/doku.php/mqtt_on_the_android_platform




回答3:


Very good sample code available at http://mosquitto.org/files/examples/android-mqtt-example.zip. Once you understand how it works, you would be able to move to writing your own code.



来源:https://stackoverflow.com/questions/10006533/push-notification-on-android-ibm-mqtt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!