I'm new at socket programming and I've read several tutorials to have an idea on when to start. But I still have little knowledge about Android UI Thread and socket programming.
When using HTTP request, you should do the operation in a different thread to prevent the UI from blocking and getting an ANR. So my question is what about a socket connection? does it works the same as an HTTP request where the code execution stops until the device gets a response, therefore, I have to do the operations in a background thread to prevent ANR?