I have created a Service in my android application which starts automatically on BOOT_COMPLETE through BroadcastReceiver. And That is
Service
BOOT_COMPLETE
BroadcastReceiver
It is very simple. steps: 1.create a Service class. 2.create a BroadcastReceiver class 3.call BroadReceiver in onDestroy method of service 4.In onReceive method of BroadReceiver class start service once again. refer this link