Simple MQTT Android Client with publisher and subscriber activities. Working with a free online hivemq broker @ "tcp://broker.hivemq.com:1883"
Read the blog below for more information. https://www.hivemq.com/blog/mqtt-essentials/page/2/ https://www.hivemq.com/blog/mqtt-essentials/
Go over parts 1 - 11 for a detailed view