I am trying to change a TextView from another thread in another class, but I am not sure how to best solve this.
I am making an instant messaging application and when receiving a message through an input stream I want to change the view which is set in another class.
Should a listener be implemented to eg handle it like this?
- Client 1 reads a message through - message = inputstream.readObject()in class A
- An Observer/Listener function in class B is called through class A and sets a TextView with the - messagevalue.
Thanks!
 
    