title: Starting an android service on power on or restart of device
body: <p>I am a beginner in android guys.So, I need your help, I created an android service and I want to restart that service when the device powered-on or restarts only in the situation when my service is activated.
  In case my service is deactivated it shouldn't be started on device being powered-on or restarting of device.
  Please help
  Thanks</p>