How to send data from a service class to a Fragment using Live data:Android

后端 未结 0 510
甜味超标
甜味超标 2020-12-11 07:59

I\'m using the MQTT service to receive some sensor data readings in my app

class MqttService : Service() {
     val mqttLive_data = MqttLiveData()
    overri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题