how to make service running even if activity closed?
===

I have an application that communicates with socket.I want bind socket service to the communication activity.But if the activity closed, the service destoryed. How can I keep the socket service running whatever the activity is open or closed?If I started notification to my application when the activity stopped,the service is running or not?