I don't know which of these methods are suited for my needs. I need to add a background service to my application that
- Opens a server socket
- Wait for a socket connection from a client
- Once socket connection is made, indefinitely listen for messages sent through the client
The application has no activities and is essentially 2 services (1 that exists for something else, and 1 that I described above)
Should I extend service or intent service? I assume I'll need to make threads within either of the classes as to not block other code execution in the other service?