I am trying to create an application similar to what's up or messenger for learning purpose.
Basically I created an activity that binds to a service which connects to a java server using TCP/IP.
While the service is alive user receives and sends messages. The problem is when the user closes the application (eg using task manager - holding down the Home button). If the application is closed the service is killed becase it has 0 binds.
My question is: What is the pattern of such applications so that the user always receive messages, how does what's up always manages to send messages and keep their service alive.
Thank You.