Hi all,
I'm writing an app that connects to a server, parses the data and prints the output to the app window. The problem I'm having is I can't find a way to write to the TextArea once I start receiving data from the server.
My current set up is like this:
Main class:
OnCreate:
Initialize some variables, load the layout from /res/layout and make a new Thread which starts a new Server connection thread and runs it.
Server class:
Connect to the server, and get the output. Show the output in Log.d and try to write to the TextArea created by the Main class using a class called write(String msg) inside the Main class.
Trying to do it this way throws exceptions. There must be a better and easier way to do this and I would appreciate any help put forward.
Cheers.






