I am developing a simple android
application that receive a json
string from a background service via websocket
. The json
data is changed overtime. For example, the json
string is:
{"app":"events","command":"handleEvents","args":{"eventId":16,"name":"X2_PA_STATE","params":[0]}}
Since the params value is changing all the time, how do I display it via TextView
and auto update its value? I have tried event listener but it seems not to work.