title: can I start a service from another service in android?
body: <p>I am developing an app which will keep track of the time when a user's phone is "not used".</p>
  
  <p>Basically, an app which gets activated as soon as a user presses unlock or in the event of an incoming call. I have written a <code>BroadcastReceiver</code> which notifies a background service to start keeping track of time during which the phone is not being used, and will show the activity as soon as the user presses to lock.</p>
  
  <p>My problem is that the services sometimes gets shut down without notifying. Can I write one more service which can periodically check whether the master service is running and toggle it in case it's shutdown? Or is there any other better way to do so?</p>