Android implementation based on MQTT protocol and Android Implementation of MQTT Protocol
I recently used message push in a project. After searching for it online for a while, I found two IBM MQTT libraries: wmqtt. jar and mqttv3.jar. This document describes how to use the mqttva. jar library.
The first choice is to build the ActiveMQ server. You can search Baidu or other engines for the installation and operation of the ActiveMQ server. The introduction is complete.
1. Use adt to build the following project
The above is my project. Of course, some of the Code also comes from the network. Now I will return it back to the network. Haha ~~~
2. Android Interface Design
You can design the above interface. How can this problem be easily done by everyone.
Iii. Postscript
After the project code is compiled, it runs on a mobile phone or a die-like device. Enter the address, port, and topic to subscribe to and publish MQTT messages.
Final attachment code: http://download.csdn.net/detail/liuping36131997/8147273