jpwsutton/PahoAndroidSample

using mqtt client as background service.

Opened this issue · 0 comments

I see you have created a few samples for mqttclient and they are all working perfectly. I could learn a lot from them and use them in my test app. However whenever I switch between my activities, mqqt disconnects. I understand that I need to use the SERVICE so all my activities within the same app can share one mqtt connection. However I could not find any sample code that shows how to use paho mqtt as service.
Do you have any small samples for this please?