How to implement a background socket listener for Android?
<p>I have an android app that listens for json commands over a socket.  I am wondering how I can implement this as a background service.  The service would receive the commands and depending on which commands they are, notify the user, or update data within the main program.  Some code examples would be great if anyone has them.  I've got an example of how to build a background service however it uses timers.  I'd like for socket to always be listening.</p>
