I am creating an application whose only component is a service which keeps on running in background (basically a proxy server) but I am not able to find a way how to start that service. Application can not have any UI or user interaction so I am not using Activity.
Broadcast receiver can listen to BOOT broadcast but how do I start service first time when it is installed and how can I keep it running?
or is there a broadcast which I can listen after app is installed e.g. may be TIME_TICK but that has to be registered from activity I think.