The idea is to start a chat. So I have this properties in my class:
private MulticastSocket so;
private EditText messageBoard;
private InetAddress serverAddr
this line:
Caused by: android.os.NetworkOnMainThreadException
Tells you what is going on.
You are attempting to access a network function on the Main(UI) thread. starting with Honeycomb the system raises an Exception when you do this.
To fix you just need to move any thing that is touching the network to its own thread.