I am trying to create an application similar to what is up or a messenger for training.
Basically, I created an operation that binds to a service that connects to the java server using TCP / IP.
While the service is active, the user receives and sends messages. The problem is that the user closes the application (for example, using the task manager - pressing the "Home" button). If the application is closed, the service is killed because it has 0 bindings.
My question is: what is the template for such applications so that the user always receives messages, as always, it is possible to send messages and maintain their service.
Thank.
source
share