Hi
I have a very simple app that when opened connects to an mqtt broker, and each data received is appended to a multiline editText.
It runs ok, but..
If I go to sleep or other app, when I return, the mqtt connections was lost and no new data received.
How can I convert it to a service, so it continues receiving data and appending to edittext ?
I have a very simple app that when opened connects to an mqtt broker, and each data received is appended to a multiline editText.
It runs ok, but..
If I go to sleep or other app, when I return, the mqtt connections was lost and no new data received.
How can I convert it to a service, so it continues receiving data and appending to edittext ?