android - What is a best way to use socket connection in application? -


Every activity has to receive messages in the realtime from the socket and sometimes the message is sent in the socket. I led the socket from one activity to another, but it failed. I tried to use the service but I can not send or receive messages from the service, just look at it from the system. OutprintLN () What is the best way to use game developer in log cat or common way? Sorry for my poor english

Use a thread (or periodically check in the main program) Amp; ; Send messages, as well as convert / interpret them in symbols, and do not just give the contents of messages in the socket. No socket.


Comments