Hi
My app have two layout(Main,chat), one service. the service will start into background when i run this app. How could i load(start) Activity(Main or chat) to show message from service when i close all layout and then service has received some mqtt message later ?
My app have two layout(Main,chat), one service. the service will start into background when i run this app. How could i load(start) Activity(Main or chat) to show message from service when i close all layout and then service has received some mqtt message later ?
B4X:
, status=7, IsInitialized=true, value=200
]
** Activity (main) Pause, UserClosed = false **
** Activity (chat) Create, isFirst = false **
** Activity (chat) Resume **
** Activity (chat) Pause, UserClosed = true **
client disconnected
** Activity (main) Resume **
Mqtt:reconnecting...
Connected: true
** Activity (main) Pause, UserClosed = true **
topiciot/plc1/2222,[topic=iot/plc1/2222, message=正常200, happen=1463530515454
, status=0, IsInitialized=true, value=200
]
sending message to waiting queue (CallSubDelayed - NewMessage) <<<<---------- all layout were close
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
topiciot/plc1/2222,[topic=iot/plc1/2222, message=過高8, happen=1463530559482
, status=8, IsInitialized=true, value=200
]
** Activity (main) Pause, UserClosed = false **
GC_CONCURRENT freed 385K, 16% free 12370K/14663K, paused 3ms+1ms, total 35ms
** Activity (chat) Create, isFirst = false **
running waiting messages (1)
** Activity (chat) Resume **
** Activity (chat) Pause, UserClosed = false **
Last edited: