IntentService connected to Server listening
I coded an IntentService where I send a command line. Is related to an activity where I'm trying to program a Console. The activity's purpose is to do a 'command prompt' where I can send and receive to/from the server. The Service's action is: COnnect to the server Send command line Get response Retrieve response to user The main problem is that every time I send a command line, the Service has to reconnect to the server. (Cause every time I'm starting the whole Service) How can I avoid this step? I would like to "keep alive" the service waiting for a command line to send, without the need of